1
0

configure 962 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.71.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
  7. # Inc.
  8. #
  9. #
  10. # This configure script is free software; the Free Software Foundation
  11. # gives unlimited permission to copy, distribute and modify it.
  12. ## -------------------- ##
  13. ## M4sh Initialization. ##
  14. ## -------------------- ##
  15. # Be more Bourne compatible
  16. DUALCASE=1; export DUALCASE # for MKS sh
  17. as_nop=:
  18. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  19. then :
  20. emulate sh
  21. NULLCMD=:
  22. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  23. # is contrary to our usage. Disable this feature.
  24. alias -g '${1+"$@"}'='"$@"'
  25. setopt NO_GLOB_SUBST
  26. else $as_nop
  27. case `(set -o) 2>/dev/null` in #(
  28. *posix*) :
  29. set -o posix ;; #(
  30. *) :
  31. ;;
  32. esac
  33. fi
  34. # Reset variables that may have inherited troublesome values from
  35. # the environment.
  36. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  37. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  38. # side effect of setting IFS to empty, thus disabling word splitting.)
  39. # Quoting is to prevent editors from complaining about space-tab.
  40. as_nl='
  41. '
  42. export as_nl
  43. IFS=" "" $as_nl"
  44. PS1='$ '
  45. PS2='> '
  46. PS4='+ '
  47. # Ensure predictable behavior from utilities with locale-dependent output.
  48. LC_ALL=C
  49. export LC_ALL
  50. LANGUAGE=C
  51. export LANGUAGE
  52. # We cannot yet rely on "unset" to work, but we need these variables
  53. # to be unset--not just set to an empty or harmless value--now, to
  54. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  55. # also avoids known problems related to "unset" and subshell syntax
  56. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  57. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  58. do eval test \${$as_var+y} \
  59. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  60. done
  61. # Ensure that fds 0, 1, and 2 are open.
  62. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  63. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  64. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  65. # The user is always right.
  66. if ${PATH_SEPARATOR+false} :; then
  67. PATH_SEPARATOR=:
  68. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  69. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  70. PATH_SEPARATOR=';'
  71. }
  72. fi
  73. # Find who we are. Look in the path if we contain no directory separator.
  74. as_myself=
  75. case $0 in #((
  76. *[\\/]* ) as_myself=$0 ;;
  77. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  78. for as_dir in $PATH
  79. do
  80. IFS=$as_save_IFS
  81. case $as_dir in #(((
  82. '') as_dir=./ ;;
  83. */) ;;
  84. *) as_dir=$as_dir/ ;;
  85. esac
  86. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  87. done
  88. IFS=$as_save_IFS
  89. ;;
  90. esac
  91. # We did not find ourselves, most probably we were run as `sh COMMAND'
  92. # in which case we are not to be found in the path.
  93. if test "x$as_myself" = x; then
  94. as_myself=$0
  95. fi
  96. if test ! -f "$as_myself"; then
  97. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  98. exit 1
  99. fi
  100. # Use a proper internal environment variable to ensure we don't fall
  101. # into an infinite loop, continuously re-executing ourselves.
  102. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  103. _as_can_reexec=no; export _as_can_reexec;
  104. # We cannot yet assume a decent shell, so we have to provide a
  105. # neutralization value for shells without unset; and this also
  106. # works around shells that cannot unset nonexistent variables.
  107. # Preserve -v and -x to the replacement shell.
  108. BASH_ENV=/dev/null
  109. ENV=/dev/null
  110. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  111. case $- in # ((((
  112. *v*x* | *x*v* ) as_opts=-vx ;;
  113. *v* ) as_opts=-v ;;
  114. *x* ) as_opts=-x ;;
  115. * ) as_opts= ;;
  116. esac
  117. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  118. # Admittedly, this is quite paranoid, since all the known shells bail
  119. # out after a failed `exec'.
  120. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  121. exit 255
  122. fi
  123. # We don't want this to propagate to other subprocesses.
  124. { _as_can_reexec=; unset _as_can_reexec;}
  125. if test "x$CONFIG_SHELL" = x; then
  126. as_bourne_compatible="as_nop=:
  127. if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  128. then :
  129. emulate sh
  130. NULLCMD=:
  131. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  132. # is contrary to our usage. Disable this feature.
  133. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  134. setopt NO_GLOB_SUBST
  135. else \$as_nop
  136. case \`(set -o) 2>/dev/null\` in #(
  137. *posix*) :
  138. set -o posix ;; #(
  139. *) :
  140. ;;
  141. esac
  142. fi
  143. "
  144. as_required="as_fn_return () { (exit \$1); }
  145. as_fn_success () { as_fn_return 0; }
  146. as_fn_failure () { as_fn_return 1; }
  147. as_fn_ret_success () { return 0; }
  148. as_fn_ret_failure () { return 1; }
  149. exitcode=0
  150. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  151. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  152. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  153. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  154. if ( set x; as_fn_ret_success y && test x = \"\$1\" )
  155. then :
  156. else \$as_nop
  157. exitcode=1; echo positional parameters were not saved.
  158. fi
  159. test x\$exitcode = x0 || exit 1
  160. blah=\$(echo \$(echo blah))
  161. test x\"\$blah\" = xblah || exit 1
  162. test -x / || exit 1"
  163. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  164. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  165. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  166. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  167. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  168. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  169. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  170. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  171. PATH=/empty FPATH=/empty; export PATH FPATH
  172. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  173. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  174. test \$(( 1 + 1 )) = 2 || exit 1"
  175. if (eval "$as_required") 2>/dev/null
  176. then :
  177. as_have_required=yes
  178. else $as_nop
  179. as_have_required=no
  180. fi
  181. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
  182. then :
  183. else $as_nop
  184. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  185. as_found=false
  186. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  187. do
  188. IFS=$as_save_IFS
  189. case $as_dir in #(((
  190. '') as_dir=./ ;;
  191. */) ;;
  192. *) as_dir=$as_dir/ ;;
  193. esac
  194. as_found=:
  195. case $as_dir in #(
  196. /*)
  197. for as_base in sh bash ksh sh5; do
  198. # Try only shells that exist, to save several forks.
  199. as_shell=$as_dir$as_base
  200. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  201. as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  202. then :
  203. CONFIG_SHELL=$as_shell as_have_required=yes
  204. if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
  205. then :
  206. break 2
  207. fi
  208. fi
  209. done;;
  210. esac
  211. as_found=false
  212. done
  213. IFS=$as_save_IFS
  214. if $as_found
  215. then :
  216. else $as_nop
  217. if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  218. as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  219. then :
  220. CONFIG_SHELL=$SHELL as_have_required=yes
  221. fi
  222. fi
  223. if test "x$CONFIG_SHELL" != x
  224. then :
  225. export CONFIG_SHELL
  226. # We cannot yet assume a decent shell, so we have to provide a
  227. # neutralization value for shells without unset; and this also
  228. # works around shells that cannot unset nonexistent variables.
  229. # Preserve -v and -x to the replacement shell.
  230. BASH_ENV=/dev/null
  231. ENV=/dev/null
  232. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  233. case $- in # ((((
  234. *v*x* | *x*v* ) as_opts=-vx ;;
  235. *v* ) as_opts=-v ;;
  236. *x* ) as_opts=-x ;;
  237. * ) as_opts= ;;
  238. esac
  239. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  240. # Admittedly, this is quite paranoid, since all the known shells bail
  241. # out after a failed `exec'.
  242. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  243. exit 255
  244. fi
  245. if test x$as_have_required = xno
  246. then :
  247. printf "%s\n" "$0: This script requires a shell more modern than all"
  248. printf "%s\n" "$0: the shells that I found on your system."
  249. if test ${ZSH_VERSION+y} ; then
  250. printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  251. printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
  252. else
  253. printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
  254. $0: including any error possibly output before this
  255. $0: message. Then install a modern shell, or manually run
  256. $0: the script under such a shell if you do have one."
  257. fi
  258. exit 1
  259. fi
  260. fi
  261. fi
  262. SHELL=${CONFIG_SHELL-/bin/sh}
  263. export SHELL
  264. # Unset more variables known to interfere with behavior of common tools.
  265. CLICOLOR_FORCE= GREP_OPTIONS=
  266. unset CLICOLOR_FORCE GREP_OPTIONS
  267. ## --------------------- ##
  268. ## M4sh Shell Functions. ##
  269. ## --------------------- ##
  270. # as_fn_unset VAR
  271. # ---------------
  272. # Portably unset VAR.
  273. as_fn_unset ()
  274. {
  275. { eval $1=; unset $1;}
  276. }
  277. as_unset=as_fn_unset
  278. # as_fn_set_status STATUS
  279. # -----------------------
  280. # Set $? to STATUS, without forking.
  281. as_fn_set_status ()
  282. {
  283. return $1
  284. } # as_fn_set_status
  285. # as_fn_exit STATUS
  286. # -----------------
  287. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  288. as_fn_exit ()
  289. {
  290. set +e
  291. as_fn_set_status $1
  292. exit $1
  293. } # as_fn_exit
  294. # as_fn_nop
  295. # ---------
  296. # Do nothing but, unlike ":", preserve the value of $?.
  297. as_fn_nop ()
  298. {
  299. return $?
  300. }
  301. as_nop=as_fn_nop
  302. # as_fn_mkdir_p
  303. # -------------
  304. # Create "$as_dir" as a directory, including parents if necessary.
  305. as_fn_mkdir_p ()
  306. {
  307. case $as_dir in #(
  308. -*) as_dir=./$as_dir;;
  309. esac
  310. test -d "$as_dir" || eval $as_mkdir_p || {
  311. as_dirs=
  312. while :; do
  313. case $as_dir in #(
  314. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  315. *) as_qdir=$as_dir;;
  316. esac
  317. as_dirs="'$as_qdir' $as_dirs"
  318. as_dir=`$as_dirname -- "$as_dir" ||
  319. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  320. X"$as_dir" : 'X\(//\)[^/]' \| \
  321. X"$as_dir" : 'X\(//\)$' \| \
  322. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  323. printf "%s\n" X"$as_dir" |
  324. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  325. s//\1/
  326. q
  327. }
  328. /^X\(\/\/\)[^/].*/{
  329. s//\1/
  330. q
  331. }
  332. /^X\(\/\/\)$/{
  333. s//\1/
  334. q
  335. }
  336. /^X\(\/\).*/{
  337. s//\1/
  338. q
  339. }
  340. s/.*/./; q'`
  341. test -d "$as_dir" && break
  342. done
  343. test -z "$as_dirs" || eval "mkdir $as_dirs"
  344. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  345. } # as_fn_mkdir_p
  346. # as_fn_executable_p FILE
  347. # -----------------------
  348. # Test if FILE is an executable regular file.
  349. as_fn_executable_p ()
  350. {
  351. test -f "$1" && test -x "$1"
  352. } # as_fn_executable_p
  353. # as_fn_append VAR VALUE
  354. # ----------------------
  355. # Append the text in VALUE to the end of the definition contained in VAR. Take
  356. # advantage of any shell optimizations that allow amortized linear growth over
  357. # repeated appends, instead of the typical quadratic growth present in naive
  358. # implementations.
  359. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  360. then :
  361. eval 'as_fn_append ()
  362. {
  363. eval $1+=\$2
  364. }'
  365. else $as_nop
  366. as_fn_append ()
  367. {
  368. eval $1=\$$1\$2
  369. }
  370. fi # as_fn_append
  371. # as_fn_arith ARG...
  372. # ------------------
  373. # Perform arithmetic evaluation on the ARGs, and store the result in the
  374. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  375. # must be portable across $(()) and expr.
  376. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  377. then :
  378. eval 'as_fn_arith ()
  379. {
  380. as_val=$(( $* ))
  381. }'
  382. else $as_nop
  383. as_fn_arith ()
  384. {
  385. as_val=`expr "$@" || test $? -eq 1`
  386. }
  387. fi # as_fn_arith
  388. # as_fn_nop
  389. # ---------
  390. # Do nothing but, unlike ":", preserve the value of $?.
  391. as_fn_nop ()
  392. {
  393. return $?
  394. }
  395. as_nop=as_fn_nop
  396. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  397. # ----------------------------------------
  398. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  399. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  400. # script with STATUS, using 1 if that was 0.
  401. as_fn_error ()
  402. {
  403. as_status=$1; test $as_status -eq 0 && as_status=1
  404. if test "$4"; then
  405. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  406. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  407. fi
  408. printf "%s\n" "$as_me: error: $2" >&2
  409. as_fn_exit $as_status
  410. } # as_fn_error
  411. if expr a : '\(a\)' >/dev/null 2>&1 &&
  412. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  413. as_expr=expr
  414. else
  415. as_expr=false
  416. fi
  417. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  418. as_basename=basename
  419. else
  420. as_basename=false
  421. fi
  422. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  423. as_dirname=dirname
  424. else
  425. as_dirname=false
  426. fi
  427. as_me=`$as_basename -- "$0" ||
  428. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  429. X"$0" : 'X\(//\)$' \| \
  430. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  431. printf "%s\n" X/"$0" |
  432. sed '/^.*\/\([^/][^/]*\)\/*$/{
  433. s//\1/
  434. q
  435. }
  436. /^X\/\(\/\/\)$/{
  437. s//\1/
  438. q
  439. }
  440. /^X\/\(\/\).*/{
  441. s//\1/
  442. q
  443. }
  444. s/.*/./; q'`
  445. # Avoid depending upon Character Ranges.
  446. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  447. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  448. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  449. as_cr_digits='0123456789'
  450. as_cr_alnum=$as_cr_Letters$as_cr_digits
  451. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  452. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  453. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  454. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  455. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  456. sed -n '
  457. p
  458. /[$]LINENO/=
  459. ' <$as_myself |
  460. sed '
  461. s/[$]LINENO.*/&-/
  462. t lineno
  463. b
  464. :lineno
  465. N
  466. :loop
  467. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  468. t loop
  469. s/-\n.*//
  470. ' >$as_me.lineno &&
  471. chmod +x "$as_me.lineno" ||
  472. { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  473. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  474. # already done that, so ensure we don't try to do so again and fall
  475. # in an infinite loop. This has already happened in practice.
  476. _as_can_reexec=no; export _as_can_reexec
  477. # Don't try to exec as it changes $[0], causing all sort of problems
  478. # (the dirname of $[0] is not the place where we might find the
  479. # original and so on. Autoconf is especially sensitive to this).
  480. . "./$as_me.lineno"
  481. # Exit status is that of the last command.
  482. exit
  483. }
  484. # Determine whether it's possible to make 'echo' print without a newline.
  485. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  486. # for compatibility with existing Makefiles.
  487. ECHO_C= ECHO_N= ECHO_T=
  488. case `echo -n x` in #(((((
  489. -n*)
  490. case `echo 'xy\c'` in
  491. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  492. xy) ECHO_C='\c';;
  493. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  494. ECHO_T=' ';;
  495. esac;;
  496. *)
  497. ECHO_N='-n';;
  498. esac
  499. # For backward compatibility with old third-party macros, we provide
  500. # the shell variables $as_echo and $as_echo_n. New code should use
  501. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  502. as_echo='printf %s\n'
  503. as_echo_n='printf %s'
  504. rm -f conf$$ conf$$.exe conf$$.file
  505. if test -d conf$$.dir; then
  506. rm -f conf$$.dir/conf$$.file
  507. else
  508. rm -f conf$$.dir
  509. mkdir conf$$.dir 2>/dev/null
  510. fi
  511. if (echo >conf$$.file) 2>/dev/null; then
  512. if ln -s conf$$.file conf$$ 2>/dev/null; then
  513. as_ln_s='ln -s'
  514. # ... but there are two gotchas:
  515. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  516. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  517. # In both cases, we have to default to `cp -pR'.
  518. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  519. as_ln_s='cp -pR'
  520. elif ln conf$$.file conf$$ 2>/dev/null; then
  521. as_ln_s=ln
  522. else
  523. as_ln_s='cp -pR'
  524. fi
  525. else
  526. as_ln_s='cp -pR'
  527. fi
  528. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  529. rmdir conf$$.dir 2>/dev/null
  530. if mkdir -p . 2>/dev/null; then
  531. as_mkdir_p='mkdir -p "$as_dir"'
  532. else
  533. test -d ./-p && rmdir ./-p
  534. as_mkdir_p=false
  535. fi
  536. as_test_x='test -x'
  537. as_executable_p=as_fn_executable_p
  538. # Sed expression to map a string onto a valid CPP name.
  539. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  540. # Sed expression to map a string onto a valid variable name.
  541. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  542. SHELL=${CONFIG_SHELL-/bin/sh}
  543. test -n "$DJDIR" || exec 7<&0 </dev/null
  544. exec 6>&1
  545. # Name of the host.
  546. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  547. # so uname gets run too.
  548. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  549. #
  550. # Initializations.
  551. #
  552. ac_default_prefix=/usr/local
  553. ac_clean_files=
  554. ac_config_libobj_dir=.
  555. LIBOBJS=
  556. cross_compiling=no
  557. subdirs=
  558. MFLAGS=
  559. MAKEFLAGS=
  560. # Identity of this package.
  561. PACKAGE_NAME=''
  562. PACKAGE_TARNAME=''
  563. PACKAGE_VERSION=''
  564. PACKAGE_STRING=''
  565. PACKAGE_BUGREPORT=''
  566. PACKAGE_URL=''
  567. ac_unique_file="src/SDL.c"
  568. # Factoring default headers for most tests.
  569. ac_includes_default="\
  570. #include <stddef.h>
  571. #ifdef HAVE_STDIO_H
  572. # include <stdio.h>
  573. #endif
  574. #ifdef HAVE_STDLIB_H
  575. # include <stdlib.h>
  576. #endif
  577. #ifdef HAVE_STRING_H
  578. # include <string.h>
  579. #endif
  580. #ifdef HAVE_INTTYPES_H
  581. # include <inttypes.h>
  582. #endif
  583. #ifdef HAVE_STDINT_H
  584. # include <stdint.h>
  585. #endif
  586. #ifdef HAVE_STRINGS_H
  587. # include <strings.h>
  588. #endif
  589. #ifdef HAVE_SYS_TYPES_H
  590. # include <sys/types.h>
  591. #endif
  592. #ifdef HAVE_SYS_STAT_H
  593. # include <sys/stat.h>
  594. #endif
  595. #ifdef HAVE_UNISTD_H
  596. # include <unistd.h>
  597. #endif"
  598. ac_header_c_list=
  599. ac_subst_vars='LTLIBOBJS
  600. LIBOBJS
  601. WAYLAND_SCANNER_CODE_MODE
  602. WAYLAND_SCANNER
  603. EXTRA_LDFLAGS
  604. BUILD_LDFLAGS
  605. EXTRA_CFLAGS
  606. BUILD_CFLAGS
  607. SDLTEST_OBJECTS
  608. SDLMAIN_OBJECTS
  609. VERSION_OBJECTS
  610. GEN_OBJECTS
  611. GEN_HEADERS
  612. OBJECTS
  613. INCLUDE
  614. ac_aux_dir
  615. ENABLE_STATIC_FALSE
  616. ENABLE_STATIC_TRUE
  617. ENABLE_SHARED_FALSE
  618. ENABLE_SHARED_TRUE
  619. PKGCONFIG_LIBS_PRIV
  620. PKGCONFIG_DEPENDS
  621. SDL_RLD_FLAGS
  622. SDL_STATIC_LIBS
  623. SDL_LIBS
  624. SDL_CFLAGS
  625. bin_prefix_relpath
  626. cmake_prefix_relpath
  627. SDL_VENDOR_INFO
  628. INSTALL_SDL2_CONFIG
  629. LIBUSB_LIBS
  630. LIBUSB_CFLAGS
  631. IBUS_LIBS
  632. IBUS_CFLAGS
  633. DBUS_LIBS
  634. DBUS_CFLAGS
  635. LIBGBM_LIBS
  636. LIBGBM_CFLAGS
  637. LIBDRM_LIBS
  638. LIBDRM_CFLAGS
  639. DIRECTFB_LIBS
  640. DIRECTFB_CFLAGS
  641. X_EXTRA_LIBS
  642. X_LIBS
  643. X_PRE_LIBS
  644. X_CFLAGS
  645. XMKMF
  646. RPI_LIBS
  647. RPI_CFLAGS
  648. DECOR_LIBS
  649. DECOR_CFLAGS
  650. FUSIONSOUND_LIBS
  651. FUSIONSOUND_CFLAGS
  652. SNDIO_LIBS
  653. SNDIO_CFLAGS
  654. ARTSCONFIG
  655. PULSEAUDIO_LIBS
  656. PULSEAUDIO_CFLAGS
  657. PIPEWIRE_LIBS
  658. PIPEWIRE_CFLAGS
  659. ESD_CONFIG
  660. ESD_LIBS
  661. ESD_CFLAGS
  662. JACK_LIBS
  663. JACK_CFLAGS
  664. ALSA_LIBS
  665. ALSA_CFLAGS
  666. ALLOCA
  667. CPP
  668. LIBTOOLLINKERTAG
  669. LINKER
  670. SORT
  671. PKG_CONFIG_LIBDIR
  672. PKG_CONFIG_PATH
  673. PKG_CONFIG
  674. SET_MAKE
  675. INSTALL_DATA
  676. INSTALL_SCRIPT
  677. INSTALL_PROGRAM
  678. CXXCPP
  679. ac_ct_CXX
  680. CXXFLAGS
  681. CXX
  682. LT_AGE
  683. LT_REVISION
  684. LT_CURRENT
  685. LT_RELEASE
  686. RC
  687. LT_SYS_LIBRARY_PATH
  688. OTOOL64
  689. OTOOL
  690. LIPO
  691. NMEDIT
  692. DSYMUTIL
  693. MANIFEST_TOOL
  694. AWK
  695. RANLIB
  696. STRIP
  697. ac_ct_AR
  698. AR
  699. LN_S
  700. NM
  701. ac_ct_DUMPBIN
  702. DUMPBIN
  703. LD
  704. FGREP
  705. EGREP
  706. GREP
  707. SED
  708. OBJEXT
  709. EXEEXT
  710. ac_ct_CC
  711. CPPFLAGS
  712. LDFLAGS
  713. CFLAGS
  714. CC
  715. host_os
  716. host_vendor
  717. host_cpu
  718. host
  719. build_os
  720. build_vendor
  721. build_cpu
  722. build
  723. LIBTOOL
  724. OBJDUMP
  725. DLLTOOL
  726. AS
  727. SDL_VERSION
  728. SDL_BINARY_AGE
  729. SDL_INTERFACE_AGE
  730. SDL_MICRO_VERSION
  731. SDL_MINOR_VERSION
  732. SDL_MAJOR_VERSION
  733. target_alias
  734. host_alias
  735. build_alias
  736. LIBS
  737. ECHO_T
  738. ECHO_N
  739. ECHO_C
  740. DEFS
  741. mandir
  742. localedir
  743. libdir
  744. psdir
  745. pdfdir
  746. dvidir
  747. htmldir
  748. infodir
  749. docdir
  750. oldincludedir
  751. includedir
  752. runstatedir
  753. localstatedir
  754. sharedstatedir
  755. sysconfdir
  756. datadir
  757. datarootdir
  758. libexecdir
  759. sbindir
  760. bindir
  761. program_transform_name
  762. prefix
  763. exec_prefix
  764. PACKAGE_URL
  765. PACKAGE_BUGREPORT
  766. PACKAGE_STRING
  767. PACKAGE_VERSION
  768. PACKAGE_TARNAME
  769. PACKAGE_NAME
  770. PATH_SEPARATOR
  771. SHELL'
  772. ac_subst_files=''
  773. ac_user_opts='
  774. enable_option_checking
  775. enable_shared
  776. enable_static
  777. with_pic
  778. enable_fast_install
  779. with_aix_soname
  780. with_gnu_ld
  781. with_sysroot
  782. enable_libtool_lock
  783. enable_largefile
  784. enable_assertions
  785. enable_dependency_tracking
  786. enable_libc
  787. enable_system_iconv
  788. enable_libiconv
  789. enable_gcc_atomics
  790. enable_atomic
  791. enable_audio
  792. enable_video
  793. enable_render
  794. enable_events
  795. enable_joystick
  796. enable_haptic
  797. enable_hidapi
  798. enable_sensor
  799. enable_power
  800. enable_filesystem
  801. enable_timers
  802. enable_file
  803. enable_misc
  804. enable_locale
  805. enable_loadso
  806. enable_cpuinfo
  807. enable_assembly
  808. enable_ssemath
  809. enable_mmx
  810. enable_3dnow
  811. enable_sse
  812. enable_sse2
  813. enable_sse3
  814. enable_altivec
  815. enable_lsx
  816. enable_lasx
  817. enable_oss
  818. enable_alsa
  819. with_alsa_prefix
  820. with_alsa_inc_prefix
  821. enable_alsatest
  822. enable_alsa_shared
  823. enable_jack
  824. enable_jack_shared
  825. enable_esd
  826. with_esd_prefix
  827. with_esd_exec_prefix
  828. enable_esdtest
  829. enable_esd_shared
  830. enable_pipewire
  831. enable_pipewire_shared
  832. enable_pulseaudio
  833. enable_pulseaudio_shared
  834. enable_arts
  835. enable_arts_shared
  836. enable_nas
  837. enable_nas_shared
  838. enable_sndio
  839. enable_sndio_shared
  840. enable_fusionsound
  841. enable_fusionsound_shared
  842. enable_diskaudio
  843. enable_dummyaudio
  844. enable_libsamplerate
  845. enable_libsamplerate_shared
  846. enable_arm_simd
  847. enable_arm_neon
  848. enable_werror
  849. enable_video_wayland
  850. enable_video_wayland_qt_touch
  851. enable_wayland_shared
  852. enable_libdecor
  853. enable_libdecor_shared
  854. enable_video_rpi
  855. enable_video_x11
  856. with_x
  857. enable_x11_shared
  858. enable_video_x11_xcursor
  859. enable_video_x11_xdbe
  860. enable_video_x11_xinput
  861. enable_video_x11_xfixes
  862. enable_video_x11_xrandr
  863. enable_video_x11_scrnsaver
  864. enable_video_x11_xshape
  865. enable_video_vivante
  866. enable_video_cocoa
  867. enable_video_metal
  868. enable_render_metal
  869. enable_video_directfb
  870. enable_directfb_shared
  871. enable_video_kmsdrm
  872. enable_kmsdrm_shared
  873. enable_video_dummy
  874. enable_video_offscreen
  875. enable_video_opengl
  876. enable_video_opengles
  877. enable_video_opengles1
  878. enable_video_opengles2
  879. enable_video_vulkan
  880. enable_libudev
  881. enable_dbus
  882. enable_ime
  883. enable_ibus
  884. enable_fcitx
  885. enable_joystick_mfi
  886. enable_pthreads
  887. enable_pthread_sem
  888. enable_directx
  889. enable_xinput
  890. enable_wasapi
  891. enable_hidapi_joystick
  892. enable_hidapi_libusb
  893. enable_clock_gettime
  894. enable_rpath
  895. enable_backgrounding_signal
  896. enable_foregrounding_signal
  897. enable_joystick_virtual
  898. enable_render_d3d
  899. enable_sdl2_config
  900. enable_vendor_info
  901. '
  902. ac_precious_vars='build_alias
  903. host_alias
  904. target_alias
  905. CC
  906. CFLAGS
  907. LDFLAGS
  908. LIBS
  909. CPPFLAGS
  910. LT_SYS_LIBRARY_PATH
  911. CXX
  912. CXXFLAGS
  913. CCC
  914. CXXCPP
  915. PKG_CONFIG
  916. PKG_CONFIG_PATH
  917. PKG_CONFIG_LIBDIR
  918. CPP
  919. JACK_CFLAGS
  920. JACK_LIBS
  921. ESD_CFLAGS
  922. ESD_LIBS
  923. PIPEWIRE_CFLAGS
  924. PIPEWIRE_LIBS
  925. PULSEAUDIO_CFLAGS
  926. PULSEAUDIO_LIBS
  927. SNDIO_CFLAGS
  928. SNDIO_LIBS
  929. FUSIONSOUND_CFLAGS
  930. FUSIONSOUND_LIBS
  931. DECOR_CFLAGS
  932. DECOR_LIBS
  933. RPI_CFLAGS
  934. RPI_LIBS
  935. XMKMF
  936. DIRECTFB_CFLAGS
  937. DIRECTFB_LIBS
  938. LIBDRM_CFLAGS
  939. LIBDRM_LIBS
  940. LIBGBM_CFLAGS
  941. LIBGBM_LIBS
  942. DBUS_CFLAGS
  943. DBUS_LIBS
  944. IBUS_CFLAGS
  945. IBUS_LIBS
  946. LIBUSB_CFLAGS
  947. LIBUSB_LIBS'
  948. # Initialize some variables set by options.
  949. ac_init_help=
  950. ac_init_version=false
  951. ac_unrecognized_opts=
  952. ac_unrecognized_sep=
  953. # The variables have the same names as the options, with
  954. # dashes changed to underlines.
  955. cache_file=/dev/null
  956. exec_prefix=NONE
  957. no_create=
  958. no_recursion=
  959. prefix=NONE
  960. program_prefix=NONE
  961. program_suffix=NONE
  962. program_transform_name=s,x,x,
  963. silent=
  964. site=
  965. srcdir=
  966. verbose=
  967. x_includes=NONE
  968. x_libraries=NONE
  969. # Installation directory options.
  970. # These are left unexpanded so users can "make install exec_prefix=/foo"
  971. # and all the variables that are supposed to be based on exec_prefix
  972. # by default will actually change.
  973. # Use braces instead of parens because sh, perl, etc. also accept them.
  974. # (The list follows the same order as the GNU Coding Standards.)
  975. bindir='${exec_prefix}/bin'
  976. sbindir='${exec_prefix}/sbin'
  977. libexecdir='${exec_prefix}/libexec'
  978. datarootdir='${prefix}/share'
  979. datadir='${datarootdir}'
  980. sysconfdir='${prefix}/etc'
  981. sharedstatedir='${prefix}/com'
  982. localstatedir='${prefix}/var'
  983. runstatedir='${localstatedir}/run'
  984. includedir='${prefix}/include'
  985. oldincludedir='/usr/include'
  986. docdir='${datarootdir}/doc/${PACKAGE}'
  987. infodir='${datarootdir}/info'
  988. htmldir='${docdir}'
  989. dvidir='${docdir}'
  990. pdfdir='${docdir}'
  991. psdir='${docdir}'
  992. libdir='${exec_prefix}/lib'
  993. localedir='${datarootdir}/locale'
  994. mandir='${datarootdir}/man'
  995. ac_prev=
  996. ac_dashdash=
  997. for ac_option
  998. do
  999. # If the previous option needs an argument, assign it.
  1000. if test -n "$ac_prev"; then
  1001. eval $ac_prev=\$ac_option
  1002. ac_prev=
  1003. continue
  1004. fi
  1005. case $ac_option in
  1006. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  1007. *=) ac_optarg= ;;
  1008. *) ac_optarg=yes ;;
  1009. esac
  1010. case $ac_dashdash$ac_option in
  1011. --)
  1012. ac_dashdash=yes ;;
  1013. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1014. ac_prev=bindir ;;
  1015. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1016. bindir=$ac_optarg ;;
  1017. -build | --build | --buil | --bui | --bu)
  1018. ac_prev=build_alias ;;
  1019. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1020. build_alias=$ac_optarg ;;
  1021. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1022. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1023. ac_prev=cache_file ;;
  1024. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1025. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1026. cache_file=$ac_optarg ;;
  1027. --config-cache | -C)
  1028. cache_file=config.cache ;;
  1029. -datadir | --datadir | --datadi | --datad)
  1030. ac_prev=datadir ;;
  1031. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1032. datadir=$ac_optarg ;;
  1033. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1034. | --dataroo | --dataro | --datar)
  1035. ac_prev=datarootdir ;;
  1036. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1037. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1038. datarootdir=$ac_optarg ;;
  1039. -disable-* | --disable-*)
  1040. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1041. # Reject names that are not valid shell variable names.
  1042. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1043. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  1044. ac_useropt_orig=$ac_useropt
  1045. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1046. case $ac_user_opts in
  1047. *"
  1048. "enable_$ac_useropt"
  1049. "*) ;;
  1050. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1051. ac_unrecognized_sep=', ';;
  1052. esac
  1053. eval enable_$ac_useropt=no ;;
  1054. -docdir | --docdir | --docdi | --doc | --do)
  1055. ac_prev=docdir ;;
  1056. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1057. docdir=$ac_optarg ;;
  1058. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1059. ac_prev=dvidir ;;
  1060. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1061. dvidir=$ac_optarg ;;
  1062. -enable-* | --enable-*)
  1063. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1064. # Reject names that are not valid shell variable names.
  1065. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1066. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  1067. ac_useropt_orig=$ac_useropt
  1068. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1069. case $ac_user_opts in
  1070. *"
  1071. "enable_$ac_useropt"
  1072. "*) ;;
  1073. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1074. ac_unrecognized_sep=', ';;
  1075. esac
  1076. eval enable_$ac_useropt=\$ac_optarg ;;
  1077. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1078. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1079. | --exec | --exe | --ex)
  1080. ac_prev=exec_prefix ;;
  1081. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1082. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1083. | --exec=* | --exe=* | --ex=*)
  1084. exec_prefix=$ac_optarg ;;
  1085. -gas | --gas | --ga | --g)
  1086. # Obsolete; use --with-gas.
  1087. with_gas=yes ;;
  1088. -help | --help | --hel | --he | -h)
  1089. ac_init_help=long ;;
  1090. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1091. ac_init_help=recursive ;;
  1092. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1093. ac_init_help=short ;;
  1094. -host | --host | --hos | --ho)
  1095. ac_prev=host_alias ;;
  1096. -host=* | --host=* | --hos=* | --ho=*)
  1097. host_alias=$ac_optarg ;;
  1098. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1099. ac_prev=htmldir ;;
  1100. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1101. | --ht=*)
  1102. htmldir=$ac_optarg ;;
  1103. -includedir | --includedir | --includedi | --included | --include \
  1104. | --includ | --inclu | --incl | --inc)
  1105. ac_prev=includedir ;;
  1106. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1107. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1108. includedir=$ac_optarg ;;
  1109. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1110. ac_prev=infodir ;;
  1111. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1112. infodir=$ac_optarg ;;
  1113. -libdir | --libdir | --libdi | --libd)
  1114. ac_prev=libdir ;;
  1115. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1116. libdir=$ac_optarg ;;
  1117. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1118. | --libexe | --libex | --libe)
  1119. ac_prev=libexecdir ;;
  1120. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1121. | --libexe=* | --libex=* | --libe=*)
  1122. libexecdir=$ac_optarg ;;
  1123. -localedir | --localedir | --localedi | --localed | --locale)
  1124. ac_prev=localedir ;;
  1125. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1126. localedir=$ac_optarg ;;
  1127. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1128. | --localstate | --localstat | --localsta | --localst | --locals)
  1129. ac_prev=localstatedir ;;
  1130. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1131. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1132. localstatedir=$ac_optarg ;;
  1133. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1134. ac_prev=mandir ;;
  1135. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1136. mandir=$ac_optarg ;;
  1137. -nfp | --nfp | --nf)
  1138. # Obsolete; use --without-fp.
  1139. with_fp=no ;;
  1140. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1141. | --no-cr | --no-c | -n)
  1142. no_create=yes ;;
  1143. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1144. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1145. no_recursion=yes ;;
  1146. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1147. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1148. | --oldin | --oldi | --old | --ol | --o)
  1149. ac_prev=oldincludedir ;;
  1150. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1151. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1152. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1153. oldincludedir=$ac_optarg ;;
  1154. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1155. ac_prev=prefix ;;
  1156. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1157. prefix=$ac_optarg ;;
  1158. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1159. | --program-pre | --program-pr | --program-p)
  1160. ac_prev=program_prefix ;;
  1161. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1162. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1163. program_prefix=$ac_optarg ;;
  1164. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1165. | --program-suf | --program-su | --program-s)
  1166. ac_prev=program_suffix ;;
  1167. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1168. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1169. program_suffix=$ac_optarg ;;
  1170. -program-transform-name | --program-transform-name \
  1171. | --program-transform-nam | --program-transform-na \
  1172. | --program-transform-n | --program-transform- \
  1173. | --program-transform | --program-transfor \
  1174. | --program-transfo | --program-transf \
  1175. | --program-trans | --program-tran \
  1176. | --progr-tra | --program-tr | --program-t)
  1177. ac_prev=program_transform_name ;;
  1178. -program-transform-name=* | --program-transform-name=* \
  1179. | --program-transform-nam=* | --program-transform-na=* \
  1180. | --program-transform-n=* | --program-transform-=* \
  1181. | --program-transform=* | --program-transfor=* \
  1182. | --program-transfo=* | --program-transf=* \
  1183. | --program-trans=* | --program-tran=* \
  1184. | --progr-tra=* | --program-tr=* | --program-t=*)
  1185. program_transform_name=$ac_optarg ;;
  1186. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1187. ac_prev=pdfdir ;;
  1188. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1189. pdfdir=$ac_optarg ;;
  1190. -psdir | --psdir | --psdi | --psd | --ps)
  1191. ac_prev=psdir ;;
  1192. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1193. psdir=$ac_optarg ;;
  1194. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1195. | -silent | --silent | --silen | --sile | --sil)
  1196. silent=yes ;;
  1197. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1198. | --runstate | --runstat | --runsta | --runst | --runs \
  1199. | --run | --ru | --r)
  1200. ac_prev=runstatedir ;;
  1201. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1202. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1203. | --run=* | --ru=* | --r=*)
  1204. runstatedir=$ac_optarg ;;
  1205. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1206. ac_prev=sbindir ;;
  1207. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1208. | --sbi=* | --sb=*)
  1209. sbindir=$ac_optarg ;;
  1210. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1211. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1212. | --sharedst | --shareds | --shared | --share | --shar \
  1213. | --sha | --sh)
  1214. ac_prev=sharedstatedir ;;
  1215. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1216. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1217. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1218. | --sha=* | --sh=*)
  1219. sharedstatedir=$ac_optarg ;;
  1220. -site | --site | --sit)
  1221. ac_prev=site ;;
  1222. -site=* | --site=* | --sit=*)
  1223. site=$ac_optarg ;;
  1224. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1225. ac_prev=srcdir ;;
  1226. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1227. srcdir=$ac_optarg ;;
  1228. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1229. | --syscon | --sysco | --sysc | --sys | --sy)
  1230. ac_prev=sysconfdir ;;
  1231. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1232. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1233. sysconfdir=$ac_optarg ;;
  1234. -target | --target | --targe | --targ | --tar | --ta | --t)
  1235. ac_prev=target_alias ;;
  1236. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1237. target_alias=$ac_optarg ;;
  1238. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1239. verbose=yes ;;
  1240. -version | --version | --versio | --versi | --vers | -V)
  1241. ac_init_version=: ;;
  1242. -with-* | --with-*)
  1243. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1244. # Reject names that are not valid shell variable names.
  1245. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1246. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1247. ac_useropt_orig=$ac_useropt
  1248. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1249. case $ac_user_opts in
  1250. *"
  1251. "with_$ac_useropt"
  1252. "*) ;;
  1253. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1254. ac_unrecognized_sep=', ';;
  1255. esac
  1256. eval with_$ac_useropt=\$ac_optarg ;;
  1257. -without-* | --without-*)
  1258. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1259. # Reject names that are not valid shell variable names.
  1260. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1261. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1262. ac_useropt_orig=$ac_useropt
  1263. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1264. case $ac_user_opts in
  1265. *"
  1266. "with_$ac_useropt"
  1267. "*) ;;
  1268. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1269. ac_unrecognized_sep=', ';;
  1270. esac
  1271. eval with_$ac_useropt=no ;;
  1272. --x)
  1273. # Obsolete; use --with-x.
  1274. with_x=yes ;;
  1275. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1276. | --x-incl | --x-inc | --x-in | --x-i)
  1277. ac_prev=x_includes ;;
  1278. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1279. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1280. x_includes=$ac_optarg ;;
  1281. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1282. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1283. ac_prev=x_libraries ;;
  1284. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1285. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1286. x_libraries=$ac_optarg ;;
  1287. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1288. Try \`$0 --help' for more information"
  1289. ;;
  1290. *=*)
  1291. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1292. # Reject names that are not valid shell variable names.
  1293. case $ac_envvar in #(
  1294. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1295. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1296. esac
  1297. eval $ac_envvar=\$ac_optarg
  1298. export $ac_envvar ;;
  1299. *)
  1300. # FIXME: should be removed in autoconf 3.0.
  1301. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
  1302. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1303. printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
  1304. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1305. ;;
  1306. esac
  1307. done
  1308. if test -n "$ac_prev"; then
  1309. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1310. as_fn_error $? "missing argument to $ac_option"
  1311. fi
  1312. if test -n "$ac_unrecognized_opts"; then
  1313. case $enable_option_checking in
  1314. no) ;;
  1315. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1316. *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1317. esac
  1318. fi
  1319. # Check all directory arguments for consistency.
  1320. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1321. datadir sysconfdir sharedstatedir localstatedir includedir \
  1322. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1323. libdir localedir mandir runstatedir
  1324. do
  1325. eval ac_val=\$$ac_var
  1326. # Remove trailing slashes.
  1327. case $ac_val in
  1328. */ )
  1329. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1330. eval $ac_var=\$ac_val;;
  1331. esac
  1332. # Be sure to have absolute directory names.
  1333. case $ac_val in
  1334. [\\/$]* | ?:[\\/]* ) continue;;
  1335. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1336. esac
  1337. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1338. done
  1339. # There might be people who depend on the old broken behavior: `$host'
  1340. # used to hold the argument of --host etc.
  1341. # FIXME: To remove some day.
  1342. build=$build_alias
  1343. host=$host_alias
  1344. target=$target_alias
  1345. # FIXME: To remove some day.
  1346. if test "x$host_alias" != x; then
  1347. if test "x$build_alias" = x; then
  1348. cross_compiling=maybe
  1349. elif test "x$build_alias" != "x$host_alias"; then
  1350. cross_compiling=yes
  1351. fi
  1352. fi
  1353. ac_tool_prefix=
  1354. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1355. test "$silent" = yes && exec 6>/dev/null
  1356. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1357. ac_ls_di=`ls -di .` &&
  1358. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1359. as_fn_error $? "working directory cannot be determined"
  1360. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1361. as_fn_error $? "pwd does not report name of working directory"
  1362. # Find the source files, if location was not specified.
  1363. if test -z "$srcdir"; then
  1364. ac_srcdir_defaulted=yes
  1365. # Try the directory containing this script, then the parent directory.
  1366. ac_confdir=`$as_dirname -- "$as_myself" ||
  1367. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1368. X"$as_myself" : 'X\(//\)[^/]' \| \
  1369. X"$as_myself" : 'X\(//\)$' \| \
  1370. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1371. printf "%s\n" X"$as_myself" |
  1372. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1373. s//\1/
  1374. q
  1375. }
  1376. /^X\(\/\/\)[^/].*/{
  1377. s//\1/
  1378. q
  1379. }
  1380. /^X\(\/\/\)$/{
  1381. s//\1/
  1382. q
  1383. }
  1384. /^X\(\/\).*/{
  1385. s//\1/
  1386. q
  1387. }
  1388. s/.*/./; q'`
  1389. srcdir=$ac_confdir
  1390. if test ! -r "$srcdir/$ac_unique_file"; then
  1391. srcdir=..
  1392. fi
  1393. else
  1394. ac_srcdir_defaulted=no
  1395. fi
  1396. if test ! -r "$srcdir/$ac_unique_file"; then
  1397. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1398. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1399. fi
  1400. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1401. ac_abs_confdir=`(
  1402. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1403. pwd)`
  1404. # When building in place, set srcdir=.
  1405. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1406. srcdir=.
  1407. fi
  1408. # Remove unnecessary trailing slashes from srcdir.
  1409. # Double slashes in file names in object file debugging info
  1410. # mess up M-x gdb in Emacs.
  1411. case $srcdir in
  1412. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1413. esac
  1414. for ac_var in $ac_precious_vars; do
  1415. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1416. eval ac_env_${ac_var}_value=\$${ac_var}
  1417. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1418. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1419. done
  1420. #
  1421. # Report the --help message.
  1422. #
  1423. if test "$ac_init_help" = "long"; then
  1424. # Omit some internal or obsolete options to make the list less imposing.
  1425. # This message is too long to be a string in the A/UX 3.1 sh.
  1426. cat <<_ACEOF
  1427. \`configure' configures this package to adapt to many kinds of systems.
  1428. Usage: $0 [OPTION]... [VAR=VALUE]...
  1429. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1430. VAR=VALUE. See below for descriptions of some of the useful variables.
  1431. Defaults for the options are specified in brackets.
  1432. Configuration:
  1433. -h, --help display this help and exit
  1434. --help=short display options specific to this package
  1435. --help=recursive display the short help of all the included packages
  1436. -V, --version display version information and exit
  1437. -q, --quiet, --silent do not print \`checking ...' messages
  1438. --cache-file=FILE cache test results in FILE [disabled]
  1439. -C, --config-cache alias for \`--cache-file=config.cache'
  1440. -n, --no-create do not create output files
  1441. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1442. Installation directories:
  1443. --prefix=PREFIX install architecture-independent files in PREFIX
  1444. [$ac_default_prefix]
  1445. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1446. [PREFIX]
  1447. By default, \`make install' will install all the files in
  1448. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1449. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1450. for instance \`--prefix=\$HOME'.
  1451. For better control, use the options below.
  1452. Fine tuning of the installation directories:
  1453. --bindir=DIR user executables [EPREFIX/bin]
  1454. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1455. --libexecdir=DIR program executables [EPREFIX/libexec]
  1456. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1457. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1458. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1459. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1460. --libdir=DIR object code libraries [EPREFIX/lib]
  1461. --includedir=DIR C header files [PREFIX/include]
  1462. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1463. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1464. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1465. --infodir=DIR info documentation [DATAROOTDIR/info]
  1466. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1467. --mandir=DIR man documentation [DATAROOTDIR/man]
  1468. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1469. --htmldir=DIR html documentation [DOCDIR]
  1470. --dvidir=DIR dvi documentation [DOCDIR]
  1471. --pdfdir=DIR pdf documentation [DOCDIR]
  1472. --psdir=DIR ps documentation [DOCDIR]
  1473. _ACEOF
  1474. cat <<\_ACEOF
  1475. X features:
  1476. --x-includes=DIR X include files are in DIR
  1477. --x-libraries=DIR X library files are in DIR
  1478. System types:
  1479. --build=BUILD configure for building on BUILD [guessed]
  1480. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1481. _ACEOF
  1482. fi
  1483. if test -n "$ac_init_help"; then
  1484. cat <<\_ACEOF
  1485. Optional Features:
  1486. --disable-option-checking ignore unrecognized --enable/--with options
  1487. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1488. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1489. --enable-shared[=PKGS] build shared libraries [default=yes]
  1490. --enable-static[=PKGS] build static libraries [default=yes]
  1491. --enable-fast-install[=PKGS]
  1492. optimize for fast installation [default=yes]
  1493. --disable-libtool-lock avoid locking (might break parallel builds)
  1494. --disable-largefile omit support for large files
  1495. --enable-assertions Enable internal sanity checks
  1496. (auto/disabled/release/enabled/paranoid)
  1497. [default=auto]
  1498. --enable-dependency-tracking
  1499. Use gcc -MMD -MT dependency tracking [default=yes]
  1500. --enable-libc Use the system C library [default=yes]
  1501. --enable-system-iconv Use iconv() from system-installed libraries
  1502. [default=no for windows, yes for others]
  1503. --enable-libiconv Prefer iconv() from libiconv, if available, over
  1504. libc version [default=no]
  1505. --enable-gcc-atomics Use gcc builtin atomics [default=yes]
  1506. --enable-atomic Enable the atomic operations subsystem [default=yes]
  1507. --enable-audio Enable the audio subsystem [default=yes]
  1508. --enable-video Enable the video subsystem [default=yes]
  1509. --enable-render Enable the render subsystem [default=yes]
  1510. --enable-events Enable the events subsystem [default=yes]
  1511. --enable-joystick Enable the joystick subsystem [default=yes]
  1512. --enable-haptic Enable the haptic (force feedback) subsystem
  1513. [default=yes]
  1514. --enable-hidapi Enable the HIDAPI subsystem [default=yes]
  1515. --enable-sensor Enable the sensor subsystem [default=yes]
  1516. --enable-power Enable the power subsystem [default=yes]
  1517. --enable-filesystem Enable the filesystem subsystem [default=yes]
  1518. --enable-timers Enable the timer subsystem [default=yes]
  1519. --enable-file Enable the file subsystem [default=yes]
  1520. --enable-misc Enable the misc subsystem [default=yes]
  1521. --enable-locale Enable the locale subsystem [default=yes]
  1522. --enable-loadso Enable the shared object loading subsystem
  1523. [default=yes]
  1524. --enable-cpuinfo Enable the cpuinfo subsystem [default=yes]
  1525. --enable-assembly Enable assembly routines [default=yes]
  1526. --enable-ssemath Allow GCC to use SSE floating point math
  1527. [default=maybe]
  1528. --enable-mmx use MMX assembly routines [default=yes]
  1529. --enable-3dnow use 3DNow! assembly routines [default=yes]
  1530. --enable-sse use SSE assembly routines [default=yes]
  1531. --enable-sse2 use SSE2 assembly routines [default=maybe]
  1532. --enable-sse3 use SSE3 assembly routines [default=maybe]
  1533. --enable-altivec use Altivec assembly routines [default=yes]
  1534. --enable-lsx use LSX assembly routines [default=yes]
  1535. --enable-lasx use LASX assembly routines [default=yes]
  1536. --enable-oss support the OSS audio API [default=maybe]
  1537. --enable-alsa support the ALSA audio API [default=yes]
  1538. --disable-alsatest Do not try to compile and run a test Alsa program
  1539. --enable-alsa-shared dynamically load ALSA audio support [default=yes]
  1540. --enable-jack use JACK audio [default=yes]
  1541. --enable-jack-shared dynamically load JACK audio support [default=yes]
  1542. --enable-esd support the Enlightened Sound Daemon [default=yes]
  1543. --disable-esdtest Do not try to compile and run a test ESD program
  1544. --enable-esd-shared dynamically load ESD audio support [default=yes]
  1545. --enable-pipewire use Pipewire audio [default=yes]
  1546. --enable-pipewire-shared
  1547. dynamically load Pipewire support [default=yes]
  1548. --enable-pulseaudio use PulseAudio [default=yes]
  1549. --enable-pulseaudio-shared
  1550. dynamically load PulseAudio support [default=yes]
  1551. --enable-arts support the Analog Real Time Synthesizer
  1552. [default=yes]
  1553. --enable-arts-shared dynamically load aRts audio support [default=yes]
  1554. --enable-nas support the NAS audio API [default=yes]
  1555. --enable-nas-shared dynamically load NAS audio support [default=yes]
  1556. --enable-sndio support the sndio audio API [default=yes]
  1557. --enable-sndio-shared dynamically load sndio audio support [default=yes]
  1558. --enable-fusionsound use FusionSound audio driver [default=no]
  1559. --enable-fusionsound-shared
  1560. dynamically load fusionsound audio support
  1561. [default=yes]
  1562. --enable-diskaudio support the disk writer audio driver [default=yes]
  1563. --enable-dummyaudio support the dummy audio driver [default=yes]
  1564. --enable-libsamplerate use libsamplerate for audio rate conversion
  1565. [default=yes]
  1566. --enable-libsamplerate-shared
  1567. dynamically load libsamplerate [default=yes]
  1568. --enable-arm-simd use SIMD assembly blitters on ARM [default=no]
  1569. --enable-arm-neon use NEON assembly blitters on ARM [default=no]
  1570. --enable-werror treat warnings as errors [default=no]
  1571. --enable-video-wayland use Wayland video driver [default=yes]
  1572. --enable-video-wayland-qt-touch
  1573. QtWayland server support for Wayland video driver
  1574. [default=yes]
  1575. --enable-wayland-shared dynamically load Wayland support [default=maybe]
  1576. --enable-libdecor use libdecor for Wayland client-side decorations
  1577. [default=yes]
  1578. --enable-libdecor-shared
  1579. dynamically load libdecor [default=yes]
  1580. --enable-video-rpi use Raspberry Pi 2/3 video driver [default=yes]
  1581. --enable-video-x11 use X11 video driver [default=maybe]
  1582. --enable-x11-shared dynamically load X11 support [default=maybe]
  1583. --enable-video-x11-xcursor
  1584. enable X11 Xcursor support [default=yes]
  1585. --enable-video-x11-xdbe enable X11 Xdbe support [default=yes]
  1586. --enable-video-x11-xinput
  1587. enable X11 XInput extension for manymouse, tablets,
  1588. etc [default=yes]
  1589. --enable-video-x11-xfixes
  1590. enable X11 Xfixes support [default=yes]
  1591. --enable-video-x11-xrandr
  1592. enable X11 Xrandr extension for fullscreen
  1593. [default=yes]
  1594. --enable-video-x11-scrnsaver
  1595. enable X11 screensaver extension [default=yes]
  1596. --enable-video-x11-xshape
  1597. enable X11 XShape support [default=yes]
  1598. --enable-video-vivante use Vivante EGL video driver [default=yes]
  1599. --enable-video-cocoa use Cocoa video driver [default=yes]
  1600. --enable-video-metal include Metal support [default=yes]
  1601. --enable-render-metal enable the Metal render driver [default=yes]
  1602. --enable-video-directfb use DirectFB video driver [default=no]
  1603. --enable-directfb-shared
  1604. dynamically load directfb support [default=yes]
  1605. --enable-video-kmsdrm use KMSDRM video driver [default=yes]
  1606. --enable-kmsdrm-shared dynamically load kmsdrm support [default=yes]
  1607. --enable-video-dummy use dummy video driver [default=yes]
  1608. --enable-video-offscreen
  1609. use offscreen video driver [default=yes]
  1610. --enable-video-opengl include OpenGL support [default=yes]
  1611. --enable-video-opengles include OpenGL ES support [default=yes]
  1612. --enable-video-opengles1
  1613. include OpenGL ES 1.1 support [default=yes]
  1614. --enable-video-opengles2
  1615. include OpenGL ES 2.0 support [default=yes]
  1616. --enable-video-vulkan include Vulkan support [default=yes]
  1617. --enable-libudev enable libudev support [default=yes]
  1618. --enable-dbus enable D-Bus support [default=yes]
  1619. --enable-ime enable IME support [default=yes]
  1620. --enable-ibus enable IBus support [default=yes]
  1621. --enable-fcitx enable fcitx support [default=yes]
  1622. --enable-joystick-mfi include macOS MFI joystick support [default=yes]
  1623. --enable-pthreads use POSIX threads for multi-threading
  1624. [default=maybe]
  1625. --enable-pthread-sem use pthread semaphores [default=maybe]
  1626. --enable-directx use DirectX for Windows audio/video [default=yes]
  1627. --enable-xinput use Xinput for Windows [default=yes]
  1628. --enable-wasapi use the Windows WASAPI audio driver [default=yes]
  1629. --enable-hidapi-joystick
  1630. use HIDAPI for low level joystick drivers
  1631. [default=yes]
  1632. --enable-hidapi-libusb use libusb for low level joystick drivers
  1633. [default=maybe]
  1634. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1635. UNIX [default=yes]
  1636. --enable-rpath use an rpath when linking SDL [default=yes]
  1637. --enable-backgrounding-signal
  1638. number to use for magic backgrounding signal or 'no'
  1639. [default=no]
  1640. --enable-foregrounding-signal
  1641. number to use for magic foregrounding signal or 'no'
  1642. [default=no]
  1643. --enable-joystick-virtual
  1644. enable virtual joystick APIs [default=yes]
  1645. --enable-render-d3d enable the Direct3D render driver [default=yes]
  1646. --enable-sdl2-config Install sdl2-config [default=yes]
  1647. --enable-vendor-info=STRING
  1648. Add vendor info to SDL_REVISION
  1649. Optional Packages:
  1650. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1651. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1652. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1653. both]
  1654. --with-aix-soname=aix|svr4|both
  1655. shared library versioning (aka "SONAME") variant to
  1656. provide on AIX, [default=aix].
  1657. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1658. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1659. compiler's sysroot if not specified).
  1660. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1661. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1662. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1663. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1664. --with-x use the X Window System
  1665. Some influential environment variables:
  1666. CC C compiler command
  1667. CFLAGS C compiler flags
  1668. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1669. nonstandard directory <lib dir>
  1670. LIBS libraries to pass to the linker, e.g. -l<library>
  1671. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1672. you have headers in a nonstandard directory <include dir>
  1673. LT_SYS_LIBRARY_PATH
  1674. User-defined run-time library search path.
  1675. CXX C++ compiler command
  1676. CXXFLAGS C++ compiler flags
  1677. CXXCPP C++ preprocessor
  1678. PKG_CONFIG path to pkg-config utility
  1679. PKG_CONFIG_PATH
  1680. directories to add to pkg-config's search path
  1681. PKG_CONFIG_LIBDIR
  1682. path overriding pkg-config's built-in search path
  1683. CPP C preprocessor
  1684. JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
  1685. JACK_LIBS linker flags for JACK, overriding pkg-config
  1686. ESD_CFLAGS C compiler flags for ESD, overriding pkg-config
  1687. ESD_LIBS linker flags for ESD, overriding pkg-config
  1688. PIPEWIRE_CFLAGS
  1689. C compiler flags for PIPEWIRE, overriding pkg-config
  1690. PIPEWIRE_LIBS
  1691. linker flags for PIPEWIRE, overriding pkg-config
  1692. PULSEAUDIO_CFLAGS
  1693. C compiler flags for PULSEAUDIO, overriding pkg-config
  1694. PULSEAUDIO_LIBS
  1695. linker flags for PULSEAUDIO, overriding pkg-config
  1696. SNDIO_CFLAGS
  1697. C compiler flags for SNDIO, overriding pkg-config
  1698. SNDIO_LIBS linker flags for SNDIO, overriding pkg-config
  1699. FUSIONSOUND_CFLAGS
  1700. C compiler flags for FUSIONSOUND, overriding pkg-config
  1701. FUSIONSOUND_LIBS
  1702. linker flags for FUSIONSOUND, overriding pkg-config
  1703. DECOR_CFLAGS
  1704. C compiler flags for DECOR, overriding pkg-config
  1705. DECOR_LIBS linker flags for DECOR, overriding pkg-config
  1706. RPI_CFLAGS C compiler flags for RPI, overriding pkg-config
  1707. RPI_LIBS linker flags for RPI, overriding pkg-config
  1708. XMKMF Path to xmkmf, Makefile generator for X Window System
  1709. DIRECTFB_CFLAGS
  1710. C compiler flags for DIRECTFB, overriding pkg-config
  1711. DIRECTFB_LIBS
  1712. linker flags for DIRECTFB, overriding pkg-config
  1713. LIBDRM_CFLAGS
  1714. C compiler flags for LIBDRM, overriding pkg-config
  1715. LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1716. LIBGBM_CFLAGS
  1717. C compiler flags for LIBGBM, overriding pkg-config
  1718. LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
  1719. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  1720. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  1721. IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
  1722. IBUS_LIBS linker flags for IBUS, overriding pkg-config
  1723. LIBUSB_CFLAGS
  1724. C compiler flags for LIBUSB, overriding pkg-config
  1725. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1726. Use these variables to override the choices made by `configure' or to help
  1727. it to find libraries and programs with nonstandard names/locations.
  1728. Report bugs to the package provider.
  1729. _ACEOF
  1730. ac_status=$?
  1731. fi
  1732. if test "$ac_init_help" = "recursive"; then
  1733. # If there are subdirs, report their specific --help.
  1734. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1735. test -d "$ac_dir" ||
  1736. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1737. continue
  1738. ac_builddir=.
  1739. case "$ac_dir" in
  1740. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1741. *)
  1742. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  1743. # A ".." for each directory in $ac_dir_suffix.
  1744. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1745. case $ac_top_builddir_sub in
  1746. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1747. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1748. esac ;;
  1749. esac
  1750. ac_abs_top_builddir=$ac_pwd
  1751. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1752. # for backward compatibility:
  1753. ac_top_builddir=$ac_top_build_prefix
  1754. case $srcdir in
  1755. .) # We are building in place.
  1756. ac_srcdir=.
  1757. ac_top_srcdir=$ac_top_builddir_sub
  1758. ac_abs_top_srcdir=$ac_pwd ;;
  1759. [\\/]* | ?:[\\/]* ) # Absolute name.
  1760. ac_srcdir=$srcdir$ac_dir_suffix;
  1761. ac_top_srcdir=$srcdir
  1762. ac_abs_top_srcdir=$srcdir ;;
  1763. *) # Relative name.
  1764. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1765. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1766. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1767. esac
  1768. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1769. cd "$ac_dir" || { ac_status=$?; continue; }
  1770. # Check for configure.gnu first; this name is used for a wrapper for
  1771. # Metaconfig's "Configure" on case-insensitive file systems.
  1772. if test -f "$ac_srcdir/configure.gnu"; then
  1773. echo &&
  1774. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1775. elif test -f "$ac_srcdir/configure"; then
  1776. echo &&
  1777. $SHELL "$ac_srcdir/configure" --help=recursive
  1778. else
  1779. printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1780. fi || ac_status=$?
  1781. cd "$ac_pwd" || { ac_status=$?; break; }
  1782. done
  1783. fi
  1784. test -n "$ac_init_help" && exit $ac_status
  1785. if $ac_init_version; then
  1786. cat <<\_ACEOF
  1787. configure
  1788. generated by GNU Autoconf 2.71
  1789. Copyright (C) 2021 Free Software Foundation, Inc.
  1790. This configure script is free software; the Free Software Foundation
  1791. gives unlimited permission to copy, distribute and modify it.
  1792. _ACEOF
  1793. exit
  1794. fi
  1795. ## ------------------------ ##
  1796. ## Autoconf initialization. ##
  1797. ## ------------------------ ##
  1798. # ac_fn_c_try_compile LINENO
  1799. # --------------------------
  1800. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1801. ac_fn_c_try_compile ()
  1802. {
  1803. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1804. rm -f conftest.$ac_objext conftest.beam
  1805. if { { ac_try="$ac_compile"
  1806. case "(($ac_try" in
  1807. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1808. *) ac_try_echo=$ac_try;;
  1809. esac
  1810. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1811. printf "%s\n" "$ac_try_echo"; } >&5
  1812. (eval "$ac_compile") 2>conftest.err
  1813. ac_status=$?
  1814. if test -s conftest.err; then
  1815. grep -v '^ *+' conftest.err >conftest.er1
  1816. cat conftest.er1 >&5
  1817. mv -f conftest.er1 conftest.err
  1818. fi
  1819. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1820. test $ac_status = 0; } && {
  1821. test -z "$ac_c_werror_flag" ||
  1822. test ! -s conftest.err
  1823. } && test -s conftest.$ac_objext
  1824. then :
  1825. ac_retval=0
  1826. else $as_nop
  1827. printf "%s\n" "$as_me: failed program was:" >&5
  1828. sed 's/^/| /' conftest.$ac_ext >&5
  1829. ac_retval=1
  1830. fi
  1831. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1832. as_fn_set_status $ac_retval
  1833. } # ac_fn_c_try_compile
  1834. # ac_fn_c_try_link LINENO
  1835. # -----------------------
  1836. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1837. ac_fn_c_try_link ()
  1838. {
  1839. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1840. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1841. if { { ac_try="$ac_link"
  1842. case "(($ac_try" in
  1843. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1844. *) ac_try_echo=$ac_try;;
  1845. esac
  1846. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1847. printf "%s\n" "$ac_try_echo"; } >&5
  1848. (eval "$ac_link") 2>conftest.err
  1849. ac_status=$?
  1850. if test -s conftest.err; then
  1851. grep -v '^ *+' conftest.err >conftest.er1
  1852. cat conftest.er1 >&5
  1853. mv -f conftest.er1 conftest.err
  1854. fi
  1855. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1856. test $ac_status = 0; } && {
  1857. test -z "$ac_c_werror_flag" ||
  1858. test ! -s conftest.err
  1859. } && test -s conftest$ac_exeext && {
  1860. test "$cross_compiling" = yes ||
  1861. test -x conftest$ac_exeext
  1862. }
  1863. then :
  1864. ac_retval=0
  1865. else $as_nop
  1866. printf "%s\n" "$as_me: failed program was:" >&5
  1867. sed 's/^/| /' conftest.$ac_ext >&5
  1868. ac_retval=1
  1869. fi
  1870. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1871. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1872. # interfere with the next link command; also delete a directory that is
  1873. # left behind by Apple's compiler. We do this before executing the actions.
  1874. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1875. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1876. as_fn_set_status $ac_retval
  1877. } # ac_fn_c_try_link
  1878. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1879. # -------------------------------------------------------
  1880. # Tests whether HEADER exists and can be compiled using the include files in
  1881. # INCLUDES, setting the cache variable VAR accordingly.
  1882. ac_fn_c_check_header_compile ()
  1883. {
  1884. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1885. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1886. printf %s "checking for $2... " >&6; }
  1887. if eval test \${$3+y}
  1888. then :
  1889. printf %s "(cached) " >&6
  1890. else $as_nop
  1891. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1892. /* end confdefs.h. */
  1893. $4
  1894. #include <$2>
  1895. _ACEOF
  1896. if ac_fn_c_try_compile "$LINENO"
  1897. then :
  1898. eval "$3=yes"
  1899. else $as_nop
  1900. eval "$3=no"
  1901. fi
  1902. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1903. fi
  1904. eval ac_res=\$$3
  1905. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1906. printf "%s\n" "$ac_res" >&6; }
  1907. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1908. } # ac_fn_c_check_header_compile
  1909. # ac_fn_c_check_func LINENO FUNC VAR
  1910. # ----------------------------------
  1911. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1912. ac_fn_c_check_func ()
  1913. {
  1914. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1915. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1916. printf %s "checking for $2... " >&6; }
  1917. if eval test \${$3+y}
  1918. then :
  1919. printf %s "(cached) " >&6
  1920. else $as_nop
  1921. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1922. /* end confdefs.h. */
  1923. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1924. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1925. #define $2 innocuous_$2
  1926. /* System header to define __stub macros and hopefully few prototypes,
  1927. which can conflict with char $2 (); below. */
  1928. #include <limits.h>
  1929. #undef $2
  1930. /* Override any GCC internal prototype to avoid an error.
  1931. Use char because int might match the return type of a GCC
  1932. builtin and then its argument prototype would still apply. */
  1933. #ifdef __cplusplus
  1934. extern "C"
  1935. #endif
  1936. char $2 ();
  1937. /* The GNU C library defines this for functions which it implements
  1938. to always fail with ENOSYS. Some functions are actually named
  1939. something starting with __ and the normal name is an alias. */
  1940. #if defined __stub_$2 || defined __stub___$2
  1941. choke me
  1942. #endif
  1943. int
  1944. main (void)
  1945. {
  1946. return $2 ();
  1947. ;
  1948. return 0;
  1949. }
  1950. _ACEOF
  1951. if ac_fn_c_try_link "$LINENO"
  1952. then :
  1953. eval "$3=yes"
  1954. else $as_nop
  1955. eval "$3=no"
  1956. fi
  1957. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  1958. conftest$ac_exeext conftest.$ac_ext
  1959. fi
  1960. eval ac_res=\$$3
  1961. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1962. printf "%s\n" "$ac_res" >&6; }
  1963. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1964. } # ac_fn_c_check_func
  1965. # ac_fn_cxx_try_compile LINENO
  1966. # ----------------------------
  1967. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1968. ac_fn_cxx_try_compile ()
  1969. {
  1970. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1971. rm -f conftest.$ac_objext conftest.beam
  1972. if { { ac_try="$ac_compile"
  1973. case "(($ac_try" in
  1974. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1975. *) ac_try_echo=$ac_try;;
  1976. esac
  1977. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1978. printf "%s\n" "$ac_try_echo"; } >&5
  1979. (eval "$ac_compile") 2>conftest.err
  1980. ac_status=$?
  1981. if test -s conftest.err; then
  1982. grep -v '^ *+' conftest.err >conftest.er1
  1983. cat conftest.er1 >&5
  1984. mv -f conftest.er1 conftest.err
  1985. fi
  1986. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1987. test $ac_status = 0; } && {
  1988. test -z "$ac_cxx_werror_flag" ||
  1989. test ! -s conftest.err
  1990. } && test -s conftest.$ac_objext
  1991. then :
  1992. ac_retval=0
  1993. else $as_nop
  1994. printf "%s\n" "$as_me: failed program was:" >&5
  1995. sed 's/^/| /' conftest.$ac_ext >&5
  1996. ac_retval=1
  1997. fi
  1998. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1999. as_fn_set_status $ac_retval
  2000. } # ac_fn_cxx_try_compile
  2001. # ac_fn_cxx_try_cpp LINENO
  2002. # ------------------------
  2003. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2004. ac_fn_cxx_try_cpp ()
  2005. {
  2006. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2007. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2008. case "(($ac_try" in
  2009. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2010. *) ac_try_echo=$ac_try;;
  2011. esac
  2012. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2013. printf "%s\n" "$ac_try_echo"; } >&5
  2014. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2015. ac_status=$?
  2016. if test -s conftest.err; then
  2017. grep -v '^ *+' conftest.err >conftest.er1
  2018. cat conftest.er1 >&5
  2019. mv -f conftest.er1 conftest.err
  2020. fi
  2021. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2022. test $ac_status = 0; } > conftest.i && {
  2023. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2024. test ! -s conftest.err
  2025. }
  2026. then :
  2027. ac_retval=0
  2028. else $as_nop
  2029. printf "%s\n" "$as_me: failed program was:" >&5
  2030. sed 's/^/| /' conftest.$ac_ext >&5
  2031. ac_retval=1
  2032. fi
  2033. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2034. as_fn_set_status $ac_retval
  2035. } # ac_fn_cxx_try_cpp
  2036. # ac_fn_cxx_try_link LINENO
  2037. # -------------------------
  2038. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2039. ac_fn_cxx_try_link ()
  2040. {
  2041. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2042. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  2043. if { { ac_try="$ac_link"
  2044. case "(($ac_try" in
  2045. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2046. *) ac_try_echo=$ac_try;;
  2047. esac
  2048. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2049. printf "%s\n" "$ac_try_echo"; } >&5
  2050. (eval "$ac_link") 2>conftest.err
  2051. ac_status=$?
  2052. if test -s conftest.err; then
  2053. grep -v '^ *+' conftest.err >conftest.er1
  2054. cat conftest.er1 >&5
  2055. mv -f conftest.er1 conftest.err
  2056. fi
  2057. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2058. test $ac_status = 0; } && {
  2059. test -z "$ac_cxx_werror_flag" ||
  2060. test ! -s conftest.err
  2061. } && test -s conftest$ac_exeext && {
  2062. test "$cross_compiling" = yes ||
  2063. test -x conftest$ac_exeext
  2064. }
  2065. then :
  2066. ac_retval=0
  2067. else $as_nop
  2068. printf "%s\n" "$as_me: failed program was:" >&5
  2069. sed 's/^/| /' conftest.$ac_ext >&5
  2070. ac_retval=1
  2071. fi
  2072. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2073. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2074. # interfere with the next link command; also delete a directory that is
  2075. # left behind by Apple's compiler. We do this before executing the actions.
  2076. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2077. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2078. as_fn_set_status $ac_retval
  2079. } # ac_fn_cxx_try_link
  2080. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2081. # -------------------------------------------
  2082. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2083. # variable VAR accordingly.
  2084. ac_fn_c_check_type ()
  2085. {
  2086. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2087. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2088. printf %s "checking for $2... " >&6; }
  2089. if eval test \${$3+y}
  2090. then :
  2091. printf %s "(cached) " >&6
  2092. else $as_nop
  2093. eval "$3=no"
  2094. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2095. /* end confdefs.h. */
  2096. $4
  2097. int
  2098. main (void)
  2099. {
  2100. if (sizeof ($2))
  2101. return 0;
  2102. ;
  2103. return 0;
  2104. }
  2105. _ACEOF
  2106. if ac_fn_c_try_compile "$LINENO"
  2107. then :
  2108. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2109. /* end confdefs.h. */
  2110. $4
  2111. int
  2112. main (void)
  2113. {
  2114. if (sizeof (($2)))
  2115. return 0;
  2116. ;
  2117. return 0;
  2118. }
  2119. _ACEOF
  2120. if ac_fn_c_try_compile "$LINENO"
  2121. then :
  2122. else $as_nop
  2123. eval "$3=yes"
  2124. fi
  2125. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2126. fi
  2127. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2128. fi
  2129. eval ac_res=\$$3
  2130. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2131. printf "%s\n" "$ac_res" >&6; }
  2132. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2133. } # ac_fn_c_check_type
  2134. # ac_fn_c_try_cpp LINENO
  2135. # ----------------------
  2136. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2137. ac_fn_c_try_cpp ()
  2138. {
  2139. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2140. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2141. case "(($ac_try" in
  2142. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2143. *) ac_try_echo=$ac_try;;
  2144. esac
  2145. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2146. printf "%s\n" "$ac_try_echo"; } >&5
  2147. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2148. ac_status=$?
  2149. if test -s conftest.err; then
  2150. grep -v '^ *+' conftest.err >conftest.er1
  2151. cat conftest.er1 >&5
  2152. mv -f conftest.er1 conftest.err
  2153. fi
  2154. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2155. test $ac_status = 0; } > conftest.i && {
  2156. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2157. test ! -s conftest.err
  2158. }
  2159. then :
  2160. ac_retval=0
  2161. else $as_nop
  2162. printf "%s\n" "$as_me: failed program was:" >&5
  2163. sed 's/^/| /' conftest.$ac_ext >&5
  2164. ac_retval=1
  2165. fi
  2166. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2167. as_fn_set_status $ac_retval
  2168. } # ac_fn_c_try_cpp
  2169. # ac_fn_c_try_run LINENO
  2170. # ----------------------
  2171. # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
  2172. # executables *can* be run.
  2173. ac_fn_c_try_run ()
  2174. {
  2175. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2176. if { { ac_try="$ac_link"
  2177. case "(($ac_try" in
  2178. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2179. *) ac_try_echo=$ac_try;;
  2180. esac
  2181. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2182. printf "%s\n" "$ac_try_echo"; } >&5
  2183. (eval "$ac_link") 2>&5
  2184. ac_status=$?
  2185. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2186. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  2187. { { case "(($ac_try" in
  2188. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2189. *) ac_try_echo=$ac_try;;
  2190. esac
  2191. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2192. printf "%s\n" "$ac_try_echo"; } >&5
  2193. (eval "$ac_try") 2>&5
  2194. ac_status=$?
  2195. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2196. test $ac_status = 0; }; }
  2197. then :
  2198. ac_retval=0
  2199. else $as_nop
  2200. printf "%s\n" "$as_me: program exited with status $ac_status" >&5
  2201. printf "%s\n" "$as_me: failed program was:" >&5
  2202. sed 's/^/| /' conftest.$ac_ext >&5
  2203. ac_retval=$ac_status
  2204. fi
  2205. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2206. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2207. as_fn_set_status $ac_retval
  2208. } # ac_fn_c_try_run
  2209. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2210. # ----------------------------------------------------
  2211. # Tries to find if the field MEMBER exists in type AGGR, after including
  2212. # INCLUDES, setting cache variable VAR accordingly.
  2213. ac_fn_c_check_member ()
  2214. {
  2215. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2216. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2217. printf %s "checking for $2.$3... " >&6; }
  2218. if eval test \${$4+y}
  2219. then :
  2220. printf %s "(cached) " >&6
  2221. else $as_nop
  2222. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2223. /* end confdefs.h. */
  2224. $5
  2225. int
  2226. main (void)
  2227. {
  2228. static $2 ac_aggr;
  2229. if (ac_aggr.$3)
  2230. return 0;
  2231. ;
  2232. return 0;
  2233. }
  2234. _ACEOF
  2235. if ac_fn_c_try_compile "$LINENO"
  2236. then :
  2237. eval "$4=yes"
  2238. else $as_nop
  2239. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2240. /* end confdefs.h. */
  2241. $5
  2242. int
  2243. main (void)
  2244. {
  2245. static $2 ac_aggr;
  2246. if (sizeof ac_aggr.$3)
  2247. return 0;
  2248. ;
  2249. return 0;
  2250. }
  2251. _ACEOF
  2252. if ac_fn_c_try_compile "$LINENO"
  2253. then :
  2254. eval "$4=yes"
  2255. else $as_nop
  2256. eval "$4=no"
  2257. fi
  2258. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2259. fi
  2260. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2261. fi
  2262. eval ac_res=\$$4
  2263. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2264. printf "%s\n" "$ac_res" >&6; }
  2265. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2266. } # ac_fn_c_check_member
  2267. # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
  2268. # ------------------------------------------------------------------
  2269. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  2270. # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
  2271. ac_fn_check_decl ()
  2272. {
  2273. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2274. as_decl_name=`echo $2|sed 's/ *(.*//'`
  2275. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  2276. printf %s "checking whether $as_decl_name is declared... " >&6; }
  2277. if eval test \${$3+y}
  2278. then :
  2279. printf %s "(cached) " >&6
  2280. else $as_nop
  2281. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  2282. eval ac_save_FLAGS=\$$6
  2283. as_fn_append $6 " $5"
  2284. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2285. /* end confdefs.h. */
  2286. $4
  2287. int
  2288. main (void)
  2289. {
  2290. #ifndef $as_decl_name
  2291. #ifdef __cplusplus
  2292. (void) $as_decl_use;
  2293. #else
  2294. (void) $as_decl_name;
  2295. #endif
  2296. #endif
  2297. ;
  2298. return 0;
  2299. }
  2300. _ACEOF
  2301. if ac_fn_c_try_compile "$LINENO"
  2302. then :
  2303. eval "$3=yes"
  2304. else $as_nop
  2305. eval "$3=no"
  2306. fi
  2307. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2308. eval $6=\$ac_save_FLAGS
  2309. fi
  2310. eval ac_res=\$$3
  2311. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2312. printf "%s\n" "$ac_res" >&6; }
  2313. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2314. } # ac_fn_check_decl
  2315. ac_configure_args_raw=
  2316. for ac_arg
  2317. do
  2318. case $ac_arg in
  2319. *\'*)
  2320. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2321. esac
  2322. as_fn_append ac_configure_args_raw " '$ac_arg'"
  2323. done
  2324. case $ac_configure_args_raw in
  2325. *$as_nl*)
  2326. ac_safe_unquote= ;;
  2327. *)
  2328. ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
  2329. ac_unsafe_a="$ac_unsafe_z#~"
  2330. ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
  2331. ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
  2332. esac
  2333. cat >config.log <<_ACEOF
  2334. This file contains any messages produced by compilers while
  2335. running configure, to aid debugging if configure makes a mistake.
  2336. It was created by $as_me, which was
  2337. generated by GNU Autoconf 2.71. Invocation command line was
  2338. $ $0$ac_configure_args_raw
  2339. _ACEOF
  2340. exec 5>>config.log
  2341. {
  2342. cat <<_ASUNAME
  2343. ## --------- ##
  2344. ## Platform. ##
  2345. ## --------- ##
  2346. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2347. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2348. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2349. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2350. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2351. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2352. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2353. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2354. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2355. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2356. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2357. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2358. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2359. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2360. _ASUNAME
  2361. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2362. for as_dir in $PATH
  2363. do
  2364. IFS=$as_save_IFS
  2365. case $as_dir in #(((
  2366. '') as_dir=./ ;;
  2367. */) ;;
  2368. *) as_dir=$as_dir/ ;;
  2369. esac
  2370. printf "%s\n" "PATH: $as_dir"
  2371. done
  2372. IFS=$as_save_IFS
  2373. } >&5
  2374. cat >&5 <<_ACEOF
  2375. ## ----------- ##
  2376. ## Core tests. ##
  2377. ## ----------- ##
  2378. _ACEOF
  2379. # Keep a trace of the command line.
  2380. # Strip out --no-create and --no-recursion so they do not pile up.
  2381. # Strip out --silent because we don't want to record it for future runs.
  2382. # Also quote any args containing shell meta-characters.
  2383. # Make two passes to allow for proper duplicate-argument suppression.
  2384. ac_configure_args=
  2385. ac_configure_args0=
  2386. ac_configure_args1=
  2387. ac_must_keep_next=false
  2388. for ac_pass in 1 2
  2389. do
  2390. for ac_arg
  2391. do
  2392. case $ac_arg in
  2393. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2394. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2395. | -silent | --silent | --silen | --sile | --sil)
  2396. continue ;;
  2397. *\'*)
  2398. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2399. esac
  2400. case $ac_pass in
  2401. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2402. 2)
  2403. as_fn_append ac_configure_args1 " '$ac_arg'"
  2404. if test $ac_must_keep_next = true; then
  2405. ac_must_keep_next=false # Got value, back to normal.
  2406. else
  2407. case $ac_arg in
  2408. *=* | --config-cache | -C | -disable-* | --disable-* \
  2409. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2410. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2411. | -with-* | --with-* | -without-* | --without-* | --x)
  2412. case "$ac_configure_args0 " in
  2413. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2414. esac
  2415. ;;
  2416. -* ) ac_must_keep_next=true ;;
  2417. esac
  2418. fi
  2419. as_fn_append ac_configure_args " '$ac_arg'"
  2420. ;;
  2421. esac
  2422. done
  2423. done
  2424. { ac_configure_args0=; unset ac_configure_args0;}
  2425. { ac_configure_args1=; unset ac_configure_args1;}
  2426. # When interrupted or exit'd, cleanup temporary files, and complete
  2427. # config.log. We remove comments because anyway the quotes in there
  2428. # would cause problems or look ugly.
  2429. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2430. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2431. trap 'exit_status=$?
  2432. # Sanitize IFS.
  2433. IFS=" "" $as_nl"
  2434. # Save into config.log some information that might help in debugging.
  2435. {
  2436. echo
  2437. printf "%s\n" "## ---------------- ##
  2438. ## Cache variables. ##
  2439. ## ---------------- ##"
  2440. echo
  2441. # The following way of writing the cache mishandles newlines in values,
  2442. (
  2443. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2444. eval ac_val=\$$ac_var
  2445. case $ac_val in #(
  2446. *${as_nl}*)
  2447. case $ac_var in #(
  2448. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2449. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2450. esac
  2451. case $ac_var in #(
  2452. _ | IFS | as_nl) ;; #(
  2453. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2454. *) { eval $ac_var=; unset $ac_var;} ;;
  2455. esac ;;
  2456. esac
  2457. done
  2458. (set) 2>&1 |
  2459. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2460. *${as_nl}ac_space=\ *)
  2461. sed -n \
  2462. "s/'\''/'\''\\\\'\'''\''/g;
  2463. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2464. ;; #(
  2465. *)
  2466. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2467. ;;
  2468. esac |
  2469. sort
  2470. )
  2471. echo
  2472. printf "%s\n" "## ----------------- ##
  2473. ## Output variables. ##
  2474. ## ----------------- ##"
  2475. echo
  2476. for ac_var in $ac_subst_vars
  2477. do
  2478. eval ac_val=\$$ac_var
  2479. case $ac_val in
  2480. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2481. esac
  2482. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2483. done | sort
  2484. echo
  2485. if test -n "$ac_subst_files"; then
  2486. printf "%s\n" "## ------------------- ##
  2487. ## File substitutions. ##
  2488. ## ------------------- ##"
  2489. echo
  2490. for ac_var in $ac_subst_files
  2491. do
  2492. eval ac_val=\$$ac_var
  2493. case $ac_val in
  2494. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2495. esac
  2496. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2497. done | sort
  2498. echo
  2499. fi
  2500. if test -s confdefs.h; then
  2501. printf "%s\n" "## ----------- ##
  2502. ## confdefs.h. ##
  2503. ## ----------- ##"
  2504. echo
  2505. cat confdefs.h
  2506. echo
  2507. fi
  2508. test "$ac_signal" != 0 &&
  2509. printf "%s\n" "$as_me: caught signal $ac_signal"
  2510. printf "%s\n" "$as_me: exit $exit_status"
  2511. } >&5
  2512. rm -f core *.core core.conftest.* &&
  2513. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2514. exit $exit_status
  2515. ' 0
  2516. for ac_signal in 1 2 13 15; do
  2517. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2518. done
  2519. ac_signal=0
  2520. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2521. rm -f -r conftest* confdefs.h
  2522. printf "%s\n" "/* confdefs.h */" > confdefs.h
  2523. # Predefined preprocessor variables.
  2524. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
  2525. printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
  2526. printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
  2527. printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
  2528. printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
  2529. printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
  2530. # Let the site file select an alternate cache file if it wants to.
  2531. # Prefer an explicitly selected file to automatically selected ones.
  2532. if test -n "$CONFIG_SITE"; then
  2533. ac_site_files="$CONFIG_SITE"
  2534. elif test "x$prefix" != xNONE; then
  2535. ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
  2536. else
  2537. ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  2538. fi
  2539. for ac_site_file in $ac_site_files
  2540. do
  2541. case $ac_site_file in #(
  2542. */*) :
  2543. ;; #(
  2544. *) :
  2545. ac_site_file=./$ac_site_file ;;
  2546. esac
  2547. if test -f "$ac_site_file" && test -r "$ac_site_file"; then
  2548. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2549. printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
  2550. sed 's/^/| /' "$ac_site_file" >&5
  2551. . "$ac_site_file" \
  2552. || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2553. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2554. as_fn_error $? "failed to load site script $ac_site_file
  2555. See \`config.log' for more details" "$LINENO" 5; }
  2556. fi
  2557. done
  2558. if test -r "$cache_file"; then
  2559. # Some versions of bash will fail to source /dev/null (special files
  2560. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2561. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2562. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2563. printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
  2564. case $cache_file in
  2565. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2566. *) . "./$cache_file";;
  2567. esac
  2568. fi
  2569. else
  2570. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2571. printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
  2572. >$cache_file
  2573. fi
  2574. # Test code for whether the C compiler supports C89 (global declarations)
  2575. ac_c_conftest_c89_globals='
  2576. /* Does the compiler advertise C89 conformance?
  2577. Do not test the value of __STDC__, because some compilers set it to 0
  2578. while being otherwise adequately conformant. */
  2579. #if !defined __STDC__
  2580. # error "Compiler does not advertise C89 conformance"
  2581. #endif
  2582. #include <stddef.h>
  2583. #include <stdarg.h>
  2584. struct stat;
  2585. /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
  2586. struct buf { int x; };
  2587. struct buf * (*rcsopen) (struct buf *, struct stat *, int);
  2588. static char *e (p, i)
  2589. char **p;
  2590. int i;
  2591. {
  2592. return p[i];
  2593. }
  2594. static char *f (char * (*g) (char **, int), char **p, ...)
  2595. {
  2596. char *s;
  2597. va_list v;
  2598. va_start (v,p);
  2599. s = g (p, va_arg (v,int));
  2600. va_end (v);
  2601. return s;
  2602. }
  2603. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2604. function prototypes and stuff, but not \xHH hex character constants.
  2605. These do not provoke an error unfortunately, instead are silently treated
  2606. as an "x". The following induces an error, until -std is added to get
  2607. proper ANSI mode. Curiously \x00 != x always comes out true, for an
  2608. array size at least. It is necessary to write \x00 == 0 to get something
  2609. that is true only with -std. */
  2610. int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
  2611. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2612. inside strings and character constants. */
  2613. #define FOO(x) '\''x'\''
  2614. int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
  2615. int test (int i, double x);
  2616. struct s1 {int (*f) (int a);};
  2617. struct s2 {int (*f) (double a);};
  2618. int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
  2619. int, int);'
  2620. # Test code for whether the C compiler supports C89 (body of main).
  2621. ac_c_conftest_c89_main='
  2622. ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
  2623. '
  2624. # Test code for whether the C compiler supports C99 (global declarations)
  2625. ac_c_conftest_c99_globals='
  2626. // Does the compiler advertise C99 conformance?
  2627. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
  2628. # error "Compiler does not advertise C99 conformance"
  2629. #endif
  2630. #include <stdbool.h>
  2631. extern int puts (const char *);
  2632. extern int printf (const char *, ...);
  2633. extern int dprintf (int, const char *, ...);
  2634. extern void *malloc (size_t);
  2635. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  2636. // dprintf is used instead of fprintf to avoid needing to declare
  2637. // FILE and stderr.
  2638. #define debug(...) dprintf (2, __VA_ARGS__)
  2639. #define showlist(...) puts (#__VA_ARGS__)
  2640. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  2641. static void
  2642. test_varargs_macros (void)
  2643. {
  2644. int x = 1234;
  2645. int y = 5678;
  2646. debug ("Flag");
  2647. debug ("X = %d\n", x);
  2648. showlist (The first, second, and third items.);
  2649. report (x>y, "x is %d but y is %d", x, y);
  2650. }
  2651. // Check long long types.
  2652. #define BIG64 18446744073709551615ull
  2653. #define BIG32 4294967295ul
  2654. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  2655. #if !BIG_OK
  2656. #error "your preprocessor is broken"
  2657. #endif
  2658. #if BIG_OK
  2659. #else
  2660. #error "your preprocessor is broken"
  2661. #endif
  2662. static long long int bignum = -9223372036854775807LL;
  2663. static unsigned long long int ubignum = BIG64;
  2664. struct incomplete_array
  2665. {
  2666. int datasize;
  2667. double data[];
  2668. };
  2669. struct named_init {
  2670. int number;
  2671. const wchar_t *name;
  2672. double average;
  2673. };
  2674. typedef const char *ccp;
  2675. static inline int
  2676. test_restrict (ccp restrict text)
  2677. {
  2678. // See if C++-style comments work.
  2679. // Iterate through items via the restricted pointer.
  2680. // Also check for declarations in for loops.
  2681. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
  2682. continue;
  2683. return 0;
  2684. }
  2685. // Check varargs and va_copy.
  2686. static bool
  2687. test_varargs (const char *format, ...)
  2688. {
  2689. va_list args;
  2690. va_start (args, format);
  2691. va_list args_copy;
  2692. va_copy (args_copy, args);
  2693. const char *str = "";
  2694. int number = 0;
  2695. float fnumber = 0;
  2696. while (*format)
  2697. {
  2698. switch (*format++)
  2699. {
  2700. case '\''s'\'': // string
  2701. str = va_arg (args_copy, const char *);
  2702. break;
  2703. case '\''d'\'': // int
  2704. number = va_arg (args_copy, int);
  2705. break;
  2706. case '\''f'\'': // float
  2707. fnumber = va_arg (args_copy, double);
  2708. break;
  2709. default:
  2710. break;
  2711. }
  2712. }
  2713. va_end (args_copy);
  2714. va_end (args);
  2715. return *str && number && fnumber;
  2716. }
  2717. '
  2718. # Test code for whether the C compiler supports C99 (body of main).
  2719. ac_c_conftest_c99_main='
  2720. // Check bool.
  2721. _Bool success = false;
  2722. success |= (argc != 0);
  2723. // Check restrict.
  2724. if (test_restrict ("String literal") == 0)
  2725. success = true;
  2726. char *restrict newvar = "Another string";
  2727. // Check varargs.
  2728. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
  2729. test_varargs_macros ();
  2730. // Check flexible array members.
  2731. struct incomplete_array *ia =
  2732. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  2733. ia->datasize = 10;
  2734. for (int i = 0; i < ia->datasize; ++i)
  2735. ia->data[i] = i * 1.234;
  2736. // Check named initializers.
  2737. struct named_init ni = {
  2738. .number = 34,
  2739. .name = L"Test wide string",
  2740. .average = 543.34343,
  2741. };
  2742. ni.number = 58;
  2743. int dynamic_array[ni.number];
  2744. dynamic_array[0] = argv[0][0];
  2745. dynamic_array[ni.number - 1] = 543;
  2746. // work around unused variable warnings
  2747. ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
  2748. || dynamic_array[ni.number - 1] != 543);
  2749. '
  2750. # Test code for whether the C compiler supports C11 (global declarations)
  2751. ac_c_conftest_c11_globals='
  2752. // Does the compiler advertise C11 conformance?
  2753. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
  2754. # error "Compiler does not advertise C11 conformance"
  2755. #endif
  2756. // Check _Alignas.
  2757. char _Alignas (double) aligned_as_double;
  2758. char _Alignas (0) no_special_alignment;
  2759. extern char aligned_as_int;
  2760. char _Alignas (0) _Alignas (int) aligned_as_int;
  2761. // Check _Alignof.
  2762. enum
  2763. {
  2764. int_alignment = _Alignof (int),
  2765. int_array_alignment = _Alignof (int[100]),
  2766. char_alignment = _Alignof (char)
  2767. };
  2768. _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
  2769. // Check _Noreturn.
  2770. int _Noreturn does_not_return (void) { for (;;) continue; }
  2771. // Check _Static_assert.
  2772. struct test_static_assert
  2773. {
  2774. int x;
  2775. _Static_assert (sizeof (int) <= sizeof (long int),
  2776. "_Static_assert does not work in struct");
  2777. long int y;
  2778. };
  2779. // Check UTF-8 literals.
  2780. #define u8 syntax error!
  2781. char const utf8_literal[] = u8"happens to be ASCII" "another string";
  2782. // Check duplicate typedefs.
  2783. typedef long *long_ptr;
  2784. typedef long int *long_ptr;
  2785. typedef long_ptr long_ptr;
  2786. // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
  2787. struct anonymous
  2788. {
  2789. union {
  2790. struct { int i; int j; };
  2791. struct { int k; long int l; } w;
  2792. };
  2793. int m;
  2794. } v1;
  2795. '
  2796. # Test code for whether the C compiler supports C11 (body of main).
  2797. ac_c_conftest_c11_main='
  2798. _Static_assert ((offsetof (struct anonymous, i)
  2799. == offsetof (struct anonymous, w.k)),
  2800. "Anonymous union alignment botch");
  2801. v1.i = 2;
  2802. v1.w.k = 5;
  2803. ok |= v1.i != 5;
  2804. '
  2805. # Test code for whether the C compiler supports C11 (complete).
  2806. ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
  2807. ${ac_c_conftest_c99_globals}
  2808. ${ac_c_conftest_c11_globals}
  2809. int
  2810. main (int argc, char **argv)
  2811. {
  2812. int ok = 0;
  2813. ${ac_c_conftest_c89_main}
  2814. ${ac_c_conftest_c99_main}
  2815. ${ac_c_conftest_c11_main}
  2816. return ok;
  2817. }
  2818. "
  2819. # Test code for whether the C compiler supports C99 (complete).
  2820. ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
  2821. ${ac_c_conftest_c99_globals}
  2822. int
  2823. main (int argc, char **argv)
  2824. {
  2825. int ok = 0;
  2826. ${ac_c_conftest_c89_main}
  2827. ${ac_c_conftest_c99_main}
  2828. return ok;
  2829. }
  2830. "
  2831. # Test code for whether the C compiler supports C89 (complete).
  2832. ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
  2833. int
  2834. main (int argc, char **argv)
  2835. {
  2836. int ok = 0;
  2837. ${ac_c_conftest_c89_main}
  2838. return ok;
  2839. }
  2840. "
  2841. as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
  2842. as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
  2843. as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
  2844. as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
  2845. as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
  2846. as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
  2847. as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
  2848. as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
  2849. as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
  2850. # Test code for whether the C++ compiler supports C++98 (global declarations)
  2851. ac_cxx_conftest_cxx98_globals='
  2852. // Does the compiler advertise C++98 conformance?
  2853. #if !defined __cplusplus || __cplusplus < 199711L
  2854. # error "Compiler does not advertise C++98 conformance"
  2855. #endif
  2856. // These inclusions are to reject old compilers that
  2857. // lack the unsuffixed header files.
  2858. #include <cstdlib>
  2859. #include <exception>
  2860. // <cassert> and <cstring> are *not* freestanding headers in C++98.
  2861. extern void assert (int);
  2862. namespace std {
  2863. extern int strcmp (const char *, const char *);
  2864. }
  2865. // Namespaces, exceptions, and templates were all added after "C++ 2.0".
  2866. using std::exception;
  2867. using std::strcmp;
  2868. namespace {
  2869. void test_exception_syntax()
  2870. {
  2871. try {
  2872. throw "test";
  2873. } catch (const char *s) {
  2874. // Extra parentheses suppress a warning when building autoconf itself,
  2875. // due to lint rules shared with more typical C programs.
  2876. assert (!(strcmp) (s, "test"));
  2877. }
  2878. }
  2879. template <typename T> struct test_template
  2880. {
  2881. T const val;
  2882. explicit test_template(T t) : val(t) {}
  2883. template <typename U> T add(U u) { return static_cast<T>(u) + val; }
  2884. };
  2885. } // anonymous namespace
  2886. '
  2887. # Test code for whether the C++ compiler supports C++98 (body of main)
  2888. ac_cxx_conftest_cxx98_main='
  2889. assert (argc);
  2890. assert (! argv[0]);
  2891. {
  2892. test_exception_syntax ();
  2893. test_template<double> tt (2.0);
  2894. assert (tt.add (4) == 6.0);
  2895. assert (true && !false);
  2896. }
  2897. '
  2898. # Test code for whether the C++ compiler supports C++11 (global declarations)
  2899. ac_cxx_conftest_cxx11_globals='
  2900. // Does the compiler advertise C++ 2011 conformance?
  2901. #if !defined __cplusplus || __cplusplus < 201103L
  2902. # error "Compiler does not advertise C++11 conformance"
  2903. #endif
  2904. namespace cxx11test
  2905. {
  2906. constexpr int get_val() { return 20; }
  2907. struct testinit
  2908. {
  2909. int i;
  2910. double d;
  2911. };
  2912. class delegate
  2913. {
  2914. public:
  2915. delegate(int n) : n(n) {}
  2916. delegate(): delegate(2354) {}
  2917. virtual int getval() { return this->n; };
  2918. protected:
  2919. int n;
  2920. };
  2921. class overridden : public delegate
  2922. {
  2923. public:
  2924. overridden(int n): delegate(n) {}
  2925. virtual int getval() override final { return this->n * 2; }
  2926. };
  2927. class nocopy
  2928. {
  2929. public:
  2930. nocopy(int i): i(i) {}
  2931. nocopy() = default;
  2932. nocopy(const nocopy&) = delete;
  2933. nocopy & operator=(const nocopy&) = delete;
  2934. private:
  2935. int i;
  2936. };
  2937. // for testing lambda expressions
  2938. template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
  2939. {
  2940. return f(v);
  2941. }
  2942. // for testing variadic templates and trailing return types
  2943. template <typename V> auto sum(V first) -> V
  2944. {
  2945. return first;
  2946. }
  2947. template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
  2948. {
  2949. return first + sum(rest...);
  2950. }
  2951. }
  2952. '
  2953. # Test code for whether the C++ compiler supports C++11 (body of main)
  2954. ac_cxx_conftest_cxx11_main='
  2955. {
  2956. // Test auto and decltype
  2957. auto a1 = 6538;
  2958. auto a2 = 48573953.4;
  2959. auto a3 = "String literal";
  2960. int total = 0;
  2961. for (auto i = a3; *i; ++i) { total += *i; }
  2962. decltype(a2) a4 = 34895.034;
  2963. }
  2964. {
  2965. // Test constexpr
  2966. short sa[cxx11test::get_val()] = { 0 };
  2967. }
  2968. {
  2969. // Test initializer lists
  2970. cxx11test::testinit il = { 4323, 435234.23544 };
  2971. }
  2972. {
  2973. // Test range-based for
  2974. int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
  2975. 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
  2976. for (auto &x : array) { x += 23; }
  2977. }
  2978. {
  2979. // Test lambda expressions
  2980. using cxx11test::eval;
  2981. assert (eval ([](int x) { return x*2; }, 21) == 42);
  2982. double d = 2.0;
  2983. assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
  2984. assert (d == 5.0);
  2985. assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
  2986. assert (d == 5.0);
  2987. }
  2988. {
  2989. // Test use of variadic templates
  2990. using cxx11test::sum;
  2991. auto a = sum(1);
  2992. auto b = sum(1, 2);
  2993. auto c = sum(1.0, 2.0, 3.0);
  2994. }
  2995. {
  2996. // Test constructor delegation
  2997. cxx11test::delegate d1;
  2998. cxx11test::delegate d2();
  2999. cxx11test::delegate d3(45);
  3000. }
  3001. {
  3002. // Test override and final
  3003. cxx11test::overridden o1(55464);
  3004. }
  3005. {
  3006. // Test nullptr
  3007. char *c = nullptr;
  3008. }
  3009. {
  3010. // Test template brackets
  3011. test_template<::test_template<int>> v(test_template<int>(12));
  3012. }
  3013. {
  3014. // Unicode literals
  3015. char const *utf8 = u8"UTF-8 string \u2500";
  3016. char16_t const *utf16 = u"UTF-8 string \u2500";
  3017. char32_t const *utf32 = U"UTF-32 string \u2500";
  3018. }
  3019. '
  3020. # Test code for whether the C compiler supports C++11 (complete).
  3021. ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
  3022. ${ac_cxx_conftest_cxx11_globals}
  3023. int
  3024. main (int argc, char **argv)
  3025. {
  3026. int ok = 0;
  3027. ${ac_cxx_conftest_cxx98_main}
  3028. ${ac_cxx_conftest_cxx11_main}
  3029. return ok;
  3030. }
  3031. "
  3032. # Test code for whether the C compiler supports C++98 (complete).
  3033. ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
  3034. int
  3035. main (int argc, char **argv)
  3036. {
  3037. int ok = 0;
  3038. ${ac_cxx_conftest_cxx98_main}
  3039. return ok;
  3040. }
  3041. "
  3042. # Auxiliary files required by this configure script.
  3043. ac_aux_files="install-sh config.guess config.sub ltmain.sh"
  3044. # Locations in which to look for auxiliary files.
  3045. ac_aux_dir_candidates="${srcdir}/build-scripts"
  3046. # Search for a directory containing all of the required auxiliary files,
  3047. # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
  3048. # If we don't find one directory that contains all the files we need,
  3049. # we report the set of missing files from the *first* directory in
  3050. # $ac_aux_dir_candidates and give up.
  3051. ac_missing_aux_files=""
  3052. ac_first_candidate=:
  3053. printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
  3054. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3055. as_found=false
  3056. for as_dir in $ac_aux_dir_candidates
  3057. do
  3058. IFS=$as_save_IFS
  3059. case $as_dir in #(((
  3060. '') as_dir=./ ;;
  3061. */) ;;
  3062. *) as_dir=$as_dir/ ;;
  3063. esac
  3064. as_found=:
  3065. printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
  3066. ac_aux_dir_found=yes
  3067. ac_install_sh=
  3068. for ac_aux in $ac_aux_files
  3069. do
  3070. # As a special case, if "install-sh" is required, that requirement
  3071. # can be satisfied by any of "install-sh", "install.sh", or "shtool",
  3072. # and $ac_install_sh is set appropriately for whichever one is found.
  3073. if test x"$ac_aux" = x"install-sh"
  3074. then
  3075. if test -f "${as_dir}install-sh"; then
  3076. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
  3077. ac_install_sh="${as_dir}install-sh -c"
  3078. elif test -f "${as_dir}install.sh"; then
  3079. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
  3080. ac_install_sh="${as_dir}install.sh -c"
  3081. elif test -f "${as_dir}shtool"; then
  3082. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
  3083. ac_install_sh="${as_dir}shtool install -c"
  3084. else
  3085. ac_aux_dir_found=no
  3086. if $ac_first_candidate; then
  3087. ac_missing_aux_files="${ac_missing_aux_files} install-sh"
  3088. else
  3089. break
  3090. fi
  3091. fi
  3092. else
  3093. if test -f "${as_dir}${ac_aux}"; then
  3094. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
  3095. else
  3096. ac_aux_dir_found=no
  3097. if $ac_first_candidate; then
  3098. ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
  3099. else
  3100. break
  3101. fi
  3102. fi
  3103. fi
  3104. done
  3105. if test "$ac_aux_dir_found" = yes; then
  3106. ac_aux_dir="$as_dir"
  3107. break
  3108. fi
  3109. ac_first_candidate=false
  3110. as_found=false
  3111. done
  3112. IFS=$as_save_IFS
  3113. if $as_found
  3114. then :
  3115. else $as_nop
  3116. as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
  3117. fi
  3118. # These three variables are undocumented and unsupported,
  3119. # and are intended to be withdrawn in a future Autoconf release.
  3120. # They can cause serious problems if a builder's source tree is in a directory
  3121. # whose full name contains unusual characters.
  3122. if test -f "${ac_aux_dir}config.guess"; then
  3123. ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
  3124. fi
  3125. if test -f "${ac_aux_dir}config.sub"; then
  3126. ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
  3127. fi
  3128. if test -f "$ac_aux_dir/configure"; then
  3129. ac_configure="$SHELL ${ac_aux_dir}configure"
  3130. fi
  3131. # Check that the precious variables saved in the cache have kept the same
  3132. # value.
  3133. ac_cache_corrupted=false
  3134. for ac_var in $ac_precious_vars; do
  3135. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  3136. eval ac_new_set=\$ac_env_${ac_var}_set
  3137. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  3138. eval ac_new_val=\$ac_env_${ac_var}_value
  3139. case $ac_old_set,$ac_new_set in
  3140. set,)
  3141. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  3142. printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  3143. ac_cache_corrupted=: ;;
  3144. ,set)
  3145. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  3146. printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  3147. ac_cache_corrupted=: ;;
  3148. ,);;
  3149. *)
  3150. if test "x$ac_old_val" != "x$ac_new_val"; then
  3151. # differences in whitespace do not lead to failure.
  3152. ac_old_val_w=`echo x $ac_old_val`
  3153. ac_new_val_w=`echo x $ac_new_val`
  3154. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  3155. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  3156. printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  3157. ac_cache_corrupted=:
  3158. else
  3159. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  3160. printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  3161. eval $ac_var=\$ac_old_val
  3162. fi
  3163. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  3164. printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
  3165. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  3166. printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
  3167. fi;;
  3168. esac
  3169. # Pass precious variables to config.status.
  3170. if test "$ac_new_set" = set; then
  3171. case $ac_new_val in
  3172. *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  3173. *) ac_arg=$ac_var=$ac_new_val ;;
  3174. esac
  3175. case " $ac_configure_args " in
  3176. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  3177. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  3178. esac
  3179. fi
  3180. done
  3181. if $ac_cache_corrupted; then
  3182. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3183. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3184. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  3185. printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
  3186. as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
  3187. and start over" "$LINENO" 5
  3188. fi
  3189. ## -------------------- ##
  3190. ## Main body of script. ##
  3191. ## -------------------- ##
  3192. ac_ext=c
  3193. ac_cpp='$CPP $CPPFLAGS'
  3194. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3195. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3196. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3197. ac_config_headers="$ac_config_headers include/SDL_config.h"
  3198. orig_CFLAGS="$CFLAGS"
  3199. # See docs/release_checklist.md
  3200. SDL_MAJOR_VERSION=2
  3201. SDL_MINOR_VERSION=29
  3202. SDL_MICRO_VERSION=3
  3203. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  3204. SDL_BINARY_AGE=`expr $SDL_MINOR_VERSION \* 100 + $SDL_MICRO_VERSION`
  3205. case "$SDL_MINOR_VERSION" in #(
  3206. *[02468]) :
  3207. SDL_INTERFACE_AGE="$SDL_MICRO_VERSION" ;; #(
  3208. *) :
  3209. SDL_INTERFACE_AGE=0 ;; #(
  3210. *) :
  3211. ;;
  3212. esac
  3213. # libtool versioning
  3214. case `pwd` in
  3215. *\ * | *\ *)
  3216. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3217. printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3218. esac
  3219. macro_version='2.4.6'
  3220. macro_revision='2.4.6'
  3221. ltmain=$ac_aux_dir/ltmain.sh
  3222. # Make sure we can run config.sub.
  3223. $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
  3224. as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
  3225. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3226. printf %s "checking build system type... " >&6; }
  3227. if test ${ac_cv_build+y}
  3228. then :
  3229. printf %s "(cached) " >&6
  3230. else $as_nop
  3231. ac_build_alias=$build_alias
  3232. test "x$ac_build_alias" = x &&
  3233. ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
  3234. test "x$ac_build_alias" = x &&
  3235. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3236. ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
  3237. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
  3238. fi
  3239. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3240. printf "%s\n" "$ac_cv_build" >&6; }
  3241. case $ac_cv_build in
  3242. *-*-*) ;;
  3243. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3244. esac
  3245. build=$ac_cv_build
  3246. ac_save_IFS=$IFS; IFS='-'
  3247. set x $ac_cv_build
  3248. shift
  3249. build_cpu=$1
  3250. build_vendor=$2
  3251. shift; shift
  3252. # Remember, the first character of IFS is used to create $*,
  3253. # except with old shells:
  3254. build_os=$*
  3255. IFS=$ac_save_IFS
  3256. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3257. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3258. printf %s "checking host system type... " >&6; }
  3259. if test ${ac_cv_host+y}
  3260. then :
  3261. printf %s "(cached) " >&6
  3262. else $as_nop
  3263. if test "x$host_alias" = x; then
  3264. ac_cv_host=$ac_cv_build
  3265. else
  3266. ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
  3267. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
  3268. fi
  3269. fi
  3270. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3271. printf "%s\n" "$ac_cv_host" >&6; }
  3272. case $ac_cv_host in
  3273. *-*-*) ;;
  3274. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3275. esac
  3276. host=$ac_cv_host
  3277. ac_save_IFS=$IFS; IFS='-'
  3278. set x $ac_cv_host
  3279. shift
  3280. host_cpu=$1
  3281. host_vendor=$2
  3282. shift; shift
  3283. # Remember, the first character of IFS is used to create $*,
  3284. # except with old shells:
  3285. host_os=$*
  3286. IFS=$ac_save_IFS
  3287. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3288. # Backslashify metacharacters that are still active within
  3289. # double-quoted strings.
  3290. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3291. # Same as above, but do not quote variable references.
  3292. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3293. # Sed substitution to delay expansion of an escaped shell variable in a
  3294. # double_quote_subst'ed string.
  3295. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3296. # Sed substitution to delay expansion of an escaped single quote.
  3297. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3298. # Sed substitution to avoid accidental globbing in evaled expressions
  3299. no_glob_subst='s/\*/\\\*/g'
  3300. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3301. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3302. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3303. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3304. printf %s "checking how to print strings... " >&6; }
  3305. # Test print first, because it will be a builtin if present.
  3306. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3307. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3308. ECHO='print -r --'
  3309. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3310. ECHO='printf %s\n'
  3311. else
  3312. # Use this function as a fallback that always works.
  3313. func_fallback_echo ()
  3314. {
  3315. eval 'cat <<_LTECHO_EOF
  3316. $1
  3317. _LTECHO_EOF'
  3318. }
  3319. ECHO='func_fallback_echo'
  3320. fi
  3321. # func_echo_all arg...
  3322. # Invoke $ECHO with all args, space-separated.
  3323. func_echo_all ()
  3324. {
  3325. $ECHO ""
  3326. }
  3327. case $ECHO in
  3328. printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3329. printf "%s\n" "printf" >&6; } ;;
  3330. print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3331. printf "%s\n" "print -r" >&6; } ;;
  3332. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3333. printf "%s\n" "cat" >&6; } ;;
  3334. esac
  3335. ac_ext=c
  3336. ac_cpp='$CPP $CPPFLAGS'
  3337. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3338. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3339. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3340. if test -n "$ac_tool_prefix"; then
  3341. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3342. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3343. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3344. printf %s "checking for $ac_word... " >&6; }
  3345. if test ${ac_cv_prog_CC+y}
  3346. then :
  3347. printf %s "(cached) " >&6
  3348. else $as_nop
  3349. if test -n "$CC"; then
  3350. ac_cv_prog_CC="$CC" # Let the user override the test.
  3351. else
  3352. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3353. for as_dir in $PATH
  3354. do
  3355. IFS=$as_save_IFS
  3356. case $as_dir in #(((
  3357. '') as_dir=./ ;;
  3358. */) ;;
  3359. *) as_dir=$as_dir/ ;;
  3360. esac
  3361. for ac_exec_ext in '' $ac_executable_extensions; do
  3362. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3363. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3364. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3365. break 2
  3366. fi
  3367. done
  3368. done
  3369. IFS=$as_save_IFS
  3370. fi
  3371. fi
  3372. CC=$ac_cv_prog_CC
  3373. if test -n "$CC"; then
  3374. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3375. printf "%s\n" "$CC" >&6; }
  3376. else
  3377. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3378. printf "%s\n" "no" >&6; }
  3379. fi
  3380. fi
  3381. if test -z "$ac_cv_prog_CC"; then
  3382. ac_ct_CC=$CC
  3383. # Extract the first word of "gcc", so it can be a program name with args.
  3384. set dummy gcc; ac_word=$2
  3385. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3386. printf %s "checking for $ac_word... " >&6; }
  3387. if test ${ac_cv_prog_ac_ct_CC+y}
  3388. then :
  3389. printf %s "(cached) " >&6
  3390. else $as_nop
  3391. if test -n "$ac_ct_CC"; then
  3392. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3393. else
  3394. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3395. for as_dir in $PATH
  3396. do
  3397. IFS=$as_save_IFS
  3398. case $as_dir in #(((
  3399. '') as_dir=./ ;;
  3400. */) ;;
  3401. *) as_dir=$as_dir/ ;;
  3402. esac
  3403. for ac_exec_ext in '' $ac_executable_extensions; do
  3404. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3405. ac_cv_prog_ac_ct_CC="gcc"
  3406. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3407. break 2
  3408. fi
  3409. done
  3410. done
  3411. IFS=$as_save_IFS
  3412. fi
  3413. fi
  3414. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3415. if test -n "$ac_ct_CC"; then
  3416. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3417. printf "%s\n" "$ac_ct_CC" >&6; }
  3418. else
  3419. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3420. printf "%s\n" "no" >&6; }
  3421. fi
  3422. if test "x$ac_ct_CC" = x; then
  3423. CC=""
  3424. else
  3425. case $cross_compiling:$ac_tool_warned in
  3426. yes:)
  3427. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3428. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3429. ac_tool_warned=yes ;;
  3430. esac
  3431. CC=$ac_ct_CC
  3432. fi
  3433. else
  3434. CC="$ac_cv_prog_CC"
  3435. fi
  3436. if test -z "$CC"; then
  3437. if test -n "$ac_tool_prefix"; then
  3438. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3439. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3440. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3441. printf %s "checking for $ac_word... " >&6; }
  3442. if test ${ac_cv_prog_CC+y}
  3443. then :
  3444. printf %s "(cached) " >&6
  3445. else $as_nop
  3446. if test -n "$CC"; then
  3447. ac_cv_prog_CC="$CC" # Let the user override the test.
  3448. else
  3449. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3450. for as_dir in $PATH
  3451. do
  3452. IFS=$as_save_IFS
  3453. case $as_dir in #(((
  3454. '') as_dir=./ ;;
  3455. */) ;;
  3456. *) as_dir=$as_dir/ ;;
  3457. esac
  3458. for ac_exec_ext in '' $ac_executable_extensions; do
  3459. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3460. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3461. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3462. break 2
  3463. fi
  3464. done
  3465. done
  3466. IFS=$as_save_IFS
  3467. fi
  3468. fi
  3469. CC=$ac_cv_prog_CC
  3470. if test -n "$CC"; then
  3471. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3472. printf "%s\n" "$CC" >&6; }
  3473. else
  3474. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3475. printf "%s\n" "no" >&6; }
  3476. fi
  3477. fi
  3478. fi
  3479. if test -z "$CC"; then
  3480. # Extract the first word of "cc", so it can be a program name with args.
  3481. set dummy cc; ac_word=$2
  3482. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3483. printf %s "checking for $ac_word... " >&6; }
  3484. if test ${ac_cv_prog_CC+y}
  3485. then :
  3486. printf %s "(cached) " >&6
  3487. else $as_nop
  3488. if test -n "$CC"; then
  3489. ac_cv_prog_CC="$CC" # Let the user override the test.
  3490. else
  3491. ac_prog_rejected=no
  3492. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3493. for as_dir in $PATH
  3494. do
  3495. IFS=$as_save_IFS
  3496. case $as_dir in #(((
  3497. '') as_dir=./ ;;
  3498. */) ;;
  3499. *) as_dir=$as_dir/ ;;
  3500. esac
  3501. for ac_exec_ext in '' $ac_executable_extensions; do
  3502. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3503. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3504. ac_prog_rejected=yes
  3505. continue
  3506. fi
  3507. ac_cv_prog_CC="cc"
  3508. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3509. break 2
  3510. fi
  3511. done
  3512. done
  3513. IFS=$as_save_IFS
  3514. if test $ac_prog_rejected = yes; then
  3515. # We found a bogon in the path, so make sure we never use it.
  3516. set dummy $ac_cv_prog_CC
  3517. shift
  3518. if test $# != 0; then
  3519. # We chose a different compiler from the bogus one.
  3520. # However, it has the same basename, so the bogon will be chosen
  3521. # first if we set CC to just the basename; use the full file name.
  3522. shift
  3523. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  3524. fi
  3525. fi
  3526. fi
  3527. fi
  3528. CC=$ac_cv_prog_CC
  3529. if test -n "$CC"; then
  3530. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3531. printf "%s\n" "$CC" >&6; }
  3532. else
  3533. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3534. printf "%s\n" "no" >&6; }
  3535. fi
  3536. fi
  3537. if test -z "$CC"; then
  3538. if test -n "$ac_tool_prefix"; then
  3539. for ac_prog in cl.exe
  3540. do
  3541. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3542. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3543. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3544. printf %s "checking for $ac_word... " >&6; }
  3545. if test ${ac_cv_prog_CC+y}
  3546. then :
  3547. printf %s "(cached) " >&6
  3548. else $as_nop
  3549. if test -n "$CC"; then
  3550. ac_cv_prog_CC="$CC" # Let the user override the test.
  3551. else
  3552. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3553. for as_dir in $PATH
  3554. do
  3555. IFS=$as_save_IFS
  3556. case $as_dir in #(((
  3557. '') as_dir=./ ;;
  3558. */) ;;
  3559. *) as_dir=$as_dir/ ;;
  3560. esac
  3561. for ac_exec_ext in '' $ac_executable_extensions; do
  3562. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3563. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3564. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3565. break 2
  3566. fi
  3567. done
  3568. done
  3569. IFS=$as_save_IFS
  3570. fi
  3571. fi
  3572. CC=$ac_cv_prog_CC
  3573. if test -n "$CC"; then
  3574. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3575. printf "%s\n" "$CC" >&6; }
  3576. else
  3577. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3578. printf "%s\n" "no" >&6; }
  3579. fi
  3580. test -n "$CC" && break
  3581. done
  3582. fi
  3583. if test -z "$CC"; then
  3584. ac_ct_CC=$CC
  3585. for ac_prog in cl.exe
  3586. do
  3587. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3588. set dummy $ac_prog; ac_word=$2
  3589. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3590. printf %s "checking for $ac_word... " >&6; }
  3591. if test ${ac_cv_prog_ac_ct_CC+y}
  3592. then :
  3593. printf %s "(cached) " >&6
  3594. else $as_nop
  3595. if test -n "$ac_ct_CC"; then
  3596. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3597. else
  3598. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3599. for as_dir in $PATH
  3600. do
  3601. IFS=$as_save_IFS
  3602. case $as_dir in #(((
  3603. '') as_dir=./ ;;
  3604. */) ;;
  3605. *) as_dir=$as_dir/ ;;
  3606. esac
  3607. for ac_exec_ext in '' $ac_executable_extensions; do
  3608. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3609. ac_cv_prog_ac_ct_CC="$ac_prog"
  3610. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3611. break 2
  3612. fi
  3613. done
  3614. done
  3615. IFS=$as_save_IFS
  3616. fi
  3617. fi
  3618. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3619. if test -n "$ac_ct_CC"; then
  3620. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3621. printf "%s\n" "$ac_ct_CC" >&6; }
  3622. else
  3623. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3624. printf "%s\n" "no" >&6; }
  3625. fi
  3626. test -n "$ac_ct_CC" && break
  3627. done
  3628. if test "x$ac_ct_CC" = x; then
  3629. CC=""
  3630. else
  3631. case $cross_compiling:$ac_tool_warned in
  3632. yes:)
  3633. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3634. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3635. ac_tool_warned=yes ;;
  3636. esac
  3637. CC=$ac_ct_CC
  3638. fi
  3639. fi
  3640. fi
  3641. if test -z "$CC"; then
  3642. if test -n "$ac_tool_prefix"; then
  3643. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  3644. set dummy ${ac_tool_prefix}clang; ac_word=$2
  3645. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3646. printf %s "checking for $ac_word... " >&6; }
  3647. if test ${ac_cv_prog_CC+y}
  3648. then :
  3649. printf %s "(cached) " >&6
  3650. else $as_nop
  3651. if test -n "$CC"; then
  3652. ac_cv_prog_CC="$CC" # Let the user override the test.
  3653. else
  3654. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3655. for as_dir in $PATH
  3656. do
  3657. IFS=$as_save_IFS
  3658. case $as_dir in #(((
  3659. '') as_dir=./ ;;
  3660. */) ;;
  3661. *) as_dir=$as_dir/ ;;
  3662. esac
  3663. for ac_exec_ext in '' $ac_executable_extensions; do
  3664. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3665. ac_cv_prog_CC="${ac_tool_prefix}clang"
  3666. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3667. break 2
  3668. fi
  3669. done
  3670. done
  3671. IFS=$as_save_IFS
  3672. fi
  3673. fi
  3674. CC=$ac_cv_prog_CC
  3675. if test -n "$CC"; then
  3676. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3677. printf "%s\n" "$CC" >&6; }
  3678. else
  3679. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3680. printf "%s\n" "no" >&6; }
  3681. fi
  3682. fi
  3683. if test -z "$ac_cv_prog_CC"; then
  3684. ac_ct_CC=$CC
  3685. # Extract the first word of "clang", so it can be a program name with args.
  3686. set dummy clang; ac_word=$2
  3687. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3688. printf %s "checking for $ac_word... " >&6; }
  3689. if test ${ac_cv_prog_ac_ct_CC+y}
  3690. then :
  3691. printf %s "(cached) " >&6
  3692. else $as_nop
  3693. if test -n "$ac_ct_CC"; then
  3694. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3695. else
  3696. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3697. for as_dir in $PATH
  3698. do
  3699. IFS=$as_save_IFS
  3700. case $as_dir in #(((
  3701. '') as_dir=./ ;;
  3702. */) ;;
  3703. *) as_dir=$as_dir/ ;;
  3704. esac
  3705. for ac_exec_ext in '' $ac_executable_extensions; do
  3706. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3707. ac_cv_prog_ac_ct_CC="clang"
  3708. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3709. break 2
  3710. fi
  3711. done
  3712. done
  3713. IFS=$as_save_IFS
  3714. fi
  3715. fi
  3716. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3717. if test -n "$ac_ct_CC"; then
  3718. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3719. printf "%s\n" "$ac_ct_CC" >&6; }
  3720. else
  3721. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3722. printf "%s\n" "no" >&6; }
  3723. fi
  3724. if test "x$ac_ct_CC" = x; then
  3725. CC=""
  3726. else
  3727. case $cross_compiling:$ac_tool_warned in
  3728. yes:)
  3729. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3730. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3731. ac_tool_warned=yes ;;
  3732. esac
  3733. CC=$ac_ct_CC
  3734. fi
  3735. else
  3736. CC="$ac_cv_prog_CC"
  3737. fi
  3738. fi
  3739. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3740. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3741. as_fn_error $? "no acceptable C compiler found in \$PATH
  3742. See \`config.log' for more details" "$LINENO" 5; }
  3743. # Provide some information about the compiler.
  3744. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3745. set X $ac_compile
  3746. ac_compiler=$2
  3747. for ac_option in --version -v -V -qversion -version; do
  3748. { { ac_try="$ac_compiler $ac_option >&5"
  3749. case "(($ac_try" in
  3750. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3751. *) ac_try_echo=$ac_try;;
  3752. esac
  3753. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3754. printf "%s\n" "$ac_try_echo"; } >&5
  3755. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3756. ac_status=$?
  3757. if test -s conftest.err; then
  3758. sed '10a\
  3759. ... rest of stderr output deleted ...
  3760. 10q' conftest.err >conftest.er1
  3761. cat conftest.er1 >&5
  3762. fi
  3763. rm -f conftest.er1 conftest.err
  3764. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3765. test $ac_status = 0; }
  3766. done
  3767. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3768. /* end confdefs.h. */
  3769. int
  3770. main (void)
  3771. {
  3772. ;
  3773. return 0;
  3774. }
  3775. _ACEOF
  3776. ac_clean_files_save=$ac_clean_files
  3777. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3778. # Try to create an executable without -o first, disregard a.out.
  3779. # It will help us diagnose broken compilers, and finding out an intuition
  3780. # of exeext.
  3781. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3782. printf %s "checking whether the C compiler works... " >&6; }
  3783. ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3784. # The possible output files:
  3785. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3786. ac_rmfiles=
  3787. for ac_file in $ac_files
  3788. do
  3789. case $ac_file in
  3790. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3791. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3792. esac
  3793. done
  3794. rm -f $ac_rmfiles
  3795. if { { ac_try="$ac_link_default"
  3796. case "(($ac_try" in
  3797. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3798. *) ac_try_echo=$ac_try;;
  3799. esac
  3800. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3801. printf "%s\n" "$ac_try_echo"; } >&5
  3802. (eval "$ac_link_default") 2>&5
  3803. ac_status=$?
  3804. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3805. test $ac_status = 0; }
  3806. then :
  3807. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3808. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3809. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3810. # so that the user can short-circuit this test for compilers unknown to
  3811. # Autoconf.
  3812. for ac_file in $ac_files ''
  3813. do
  3814. test -f "$ac_file" || continue
  3815. case $ac_file in
  3816. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3817. ;;
  3818. [ab].out )
  3819. # We found the default executable, but exeext='' is most
  3820. # certainly right.
  3821. break;;
  3822. *.* )
  3823. if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
  3824. then :; else
  3825. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3826. fi
  3827. # We set ac_cv_exeext here because the later test for it is not
  3828. # safe: cross compilers may not add the suffix if given an `-o'
  3829. # argument, so we may need to know it at that point already.
  3830. # Even if this section looks crufty: it has the advantage of
  3831. # actually working.
  3832. break;;
  3833. * )
  3834. break;;
  3835. esac
  3836. done
  3837. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3838. else $as_nop
  3839. ac_file=''
  3840. fi
  3841. if test -z "$ac_file"
  3842. then :
  3843. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3844. printf "%s\n" "no" >&6; }
  3845. printf "%s\n" "$as_me: failed program was:" >&5
  3846. sed 's/^/| /' conftest.$ac_ext >&5
  3847. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3848. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3849. as_fn_error 77 "C compiler cannot create executables
  3850. See \`config.log' for more details" "$LINENO" 5; }
  3851. else $as_nop
  3852. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3853. printf "%s\n" "yes" >&6; }
  3854. fi
  3855. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3856. printf %s "checking for C compiler default output file name... " >&6; }
  3857. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3858. printf "%s\n" "$ac_file" >&6; }
  3859. ac_exeext=$ac_cv_exeext
  3860. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3861. ac_clean_files=$ac_clean_files_save
  3862. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3863. printf %s "checking for suffix of executables... " >&6; }
  3864. if { { ac_try="$ac_link"
  3865. case "(($ac_try" in
  3866. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3867. *) ac_try_echo=$ac_try;;
  3868. esac
  3869. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3870. printf "%s\n" "$ac_try_echo"; } >&5
  3871. (eval "$ac_link") 2>&5
  3872. ac_status=$?
  3873. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3874. test $ac_status = 0; }
  3875. then :
  3876. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3877. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3878. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3879. # `rm'.
  3880. for ac_file in conftest.exe conftest conftest.*; do
  3881. test -f "$ac_file" || continue
  3882. case $ac_file in
  3883. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3884. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3885. break;;
  3886. * ) break;;
  3887. esac
  3888. done
  3889. else $as_nop
  3890. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3891. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3892. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3893. See \`config.log' for more details" "$LINENO" 5; }
  3894. fi
  3895. rm -f conftest conftest$ac_cv_exeext
  3896. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3897. printf "%s\n" "$ac_cv_exeext" >&6; }
  3898. rm -f conftest.$ac_ext
  3899. EXEEXT=$ac_cv_exeext
  3900. ac_exeext=$EXEEXT
  3901. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3902. /* end confdefs.h. */
  3903. #include <stdio.h>
  3904. int
  3905. main (void)
  3906. {
  3907. FILE *f = fopen ("conftest.out", "w");
  3908. return ferror (f) || fclose (f) != 0;
  3909. ;
  3910. return 0;
  3911. }
  3912. _ACEOF
  3913. ac_clean_files="$ac_clean_files conftest.out"
  3914. # Check that the compiler produces executables we can run. If not, either
  3915. # the compiler is broken, or we cross compile.
  3916. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3917. printf %s "checking whether we are cross compiling... " >&6; }
  3918. if test "$cross_compiling" != yes; then
  3919. { { ac_try="$ac_link"
  3920. case "(($ac_try" in
  3921. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3922. *) ac_try_echo=$ac_try;;
  3923. esac
  3924. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3925. printf "%s\n" "$ac_try_echo"; } >&5
  3926. (eval "$ac_link") 2>&5
  3927. ac_status=$?
  3928. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3929. test $ac_status = 0; }
  3930. if { ac_try='./conftest$ac_cv_exeext'
  3931. { { case "(($ac_try" in
  3932. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3933. *) ac_try_echo=$ac_try;;
  3934. esac
  3935. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3936. printf "%s\n" "$ac_try_echo"; } >&5
  3937. (eval "$ac_try") 2>&5
  3938. ac_status=$?
  3939. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3940. test $ac_status = 0; }; }; then
  3941. cross_compiling=no
  3942. else
  3943. if test "$cross_compiling" = maybe; then
  3944. cross_compiling=yes
  3945. else
  3946. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3947. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3948. as_fn_error 77 "cannot run C compiled programs.
  3949. If you meant to cross compile, use \`--host'.
  3950. See \`config.log' for more details" "$LINENO" 5; }
  3951. fi
  3952. fi
  3953. fi
  3954. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3955. printf "%s\n" "$cross_compiling" >&6; }
  3956. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3957. ac_clean_files=$ac_clean_files_save
  3958. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3959. printf %s "checking for suffix of object files... " >&6; }
  3960. if test ${ac_cv_objext+y}
  3961. then :
  3962. printf %s "(cached) " >&6
  3963. else $as_nop
  3964. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3965. /* end confdefs.h. */
  3966. int
  3967. main (void)
  3968. {
  3969. ;
  3970. return 0;
  3971. }
  3972. _ACEOF
  3973. rm -f conftest.o conftest.obj
  3974. if { { ac_try="$ac_compile"
  3975. case "(($ac_try" in
  3976. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3977. *) ac_try_echo=$ac_try;;
  3978. esac
  3979. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3980. printf "%s\n" "$ac_try_echo"; } >&5
  3981. (eval "$ac_compile") 2>&5
  3982. ac_status=$?
  3983. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3984. test $ac_status = 0; }
  3985. then :
  3986. for ac_file in conftest.o conftest.obj conftest.*; do
  3987. test -f "$ac_file" || continue;
  3988. case $ac_file in
  3989. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3990. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3991. break;;
  3992. esac
  3993. done
  3994. else $as_nop
  3995. printf "%s\n" "$as_me: failed program was:" >&5
  3996. sed 's/^/| /' conftest.$ac_ext >&5
  3997. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3998. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3999. as_fn_error $? "cannot compute suffix of object files: cannot compile
  4000. See \`config.log' for more details" "$LINENO" 5; }
  4001. fi
  4002. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  4003. fi
  4004. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  4005. printf "%s\n" "$ac_cv_objext" >&6; }
  4006. OBJEXT=$ac_cv_objext
  4007. ac_objext=$OBJEXT
  4008. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  4009. printf %s "checking whether the compiler supports GNU C... " >&6; }
  4010. if test ${ac_cv_c_compiler_gnu+y}
  4011. then :
  4012. printf %s "(cached) " >&6
  4013. else $as_nop
  4014. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4015. /* end confdefs.h. */
  4016. int
  4017. main (void)
  4018. {
  4019. #ifndef __GNUC__
  4020. choke me
  4021. #endif
  4022. ;
  4023. return 0;
  4024. }
  4025. _ACEOF
  4026. if ac_fn_c_try_compile "$LINENO"
  4027. then :
  4028. ac_compiler_gnu=yes
  4029. else $as_nop
  4030. ac_compiler_gnu=no
  4031. fi
  4032. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4033. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4034. fi
  4035. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4036. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  4037. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4038. if test $ac_compiler_gnu = yes; then
  4039. GCC=yes
  4040. else
  4041. GCC=
  4042. fi
  4043. ac_test_CFLAGS=${CFLAGS+y}
  4044. ac_save_CFLAGS=$CFLAGS
  4045. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4046. printf %s "checking whether $CC accepts -g... " >&6; }
  4047. if test ${ac_cv_prog_cc_g+y}
  4048. then :
  4049. printf %s "(cached) " >&6
  4050. else $as_nop
  4051. ac_save_c_werror_flag=$ac_c_werror_flag
  4052. ac_c_werror_flag=yes
  4053. ac_cv_prog_cc_g=no
  4054. CFLAGS="-g"
  4055. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4056. /* end confdefs.h. */
  4057. int
  4058. main (void)
  4059. {
  4060. ;
  4061. return 0;
  4062. }
  4063. _ACEOF
  4064. if ac_fn_c_try_compile "$LINENO"
  4065. then :
  4066. ac_cv_prog_cc_g=yes
  4067. else $as_nop
  4068. CFLAGS=""
  4069. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4070. /* end confdefs.h. */
  4071. int
  4072. main (void)
  4073. {
  4074. ;
  4075. return 0;
  4076. }
  4077. _ACEOF
  4078. if ac_fn_c_try_compile "$LINENO"
  4079. then :
  4080. else $as_nop
  4081. ac_c_werror_flag=$ac_save_c_werror_flag
  4082. CFLAGS="-g"
  4083. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4084. /* end confdefs.h. */
  4085. int
  4086. main (void)
  4087. {
  4088. ;
  4089. return 0;
  4090. }
  4091. _ACEOF
  4092. if ac_fn_c_try_compile "$LINENO"
  4093. then :
  4094. ac_cv_prog_cc_g=yes
  4095. fi
  4096. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4097. fi
  4098. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4099. fi
  4100. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4101. ac_c_werror_flag=$ac_save_c_werror_flag
  4102. fi
  4103. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4104. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  4105. if test $ac_test_CFLAGS; then
  4106. CFLAGS=$ac_save_CFLAGS
  4107. elif test $ac_cv_prog_cc_g = yes; then
  4108. if test "$GCC" = yes; then
  4109. CFLAGS="-g -O2"
  4110. else
  4111. CFLAGS="-g"
  4112. fi
  4113. else
  4114. if test "$GCC" = yes; then
  4115. CFLAGS="-O2"
  4116. else
  4117. CFLAGS=
  4118. fi
  4119. fi
  4120. ac_prog_cc_stdc=no
  4121. if test x$ac_prog_cc_stdc = xno
  4122. then :
  4123. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  4124. printf %s "checking for $CC option to enable C11 features... " >&6; }
  4125. if test ${ac_cv_prog_cc_c11+y}
  4126. then :
  4127. printf %s "(cached) " >&6
  4128. else $as_nop
  4129. ac_cv_prog_cc_c11=no
  4130. ac_save_CC=$CC
  4131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4132. /* end confdefs.h. */
  4133. $ac_c_conftest_c11_program
  4134. _ACEOF
  4135. for ac_arg in '' -std=gnu11
  4136. do
  4137. CC="$ac_save_CC $ac_arg"
  4138. if ac_fn_c_try_compile "$LINENO"
  4139. then :
  4140. ac_cv_prog_cc_c11=$ac_arg
  4141. fi
  4142. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4143. test "x$ac_cv_prog_cc_c11" != "xno" && break
  4144. done
  4145. rm -f conftest.$ac_ext
  4146. CC=$ac_save_CC
  4147. fi
  4148. if test "x$ac_cv_prog_cc_c11" = xno
  4149. then :
  4150. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4151. printf "%s\n" "unsupported" >&6; }
  4152. else $as_nop
  4153. if test "x$ac_cv_prog_cc_c11" = x
  4154. then :
  4155. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4156. printf "%s\n" "none needed" >&6; }
  4157. else $as_nop
  4158. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  4159. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  4160. CC="$CC $ac_cv_prog_cc_c11"
  4161. fi
  4162. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  4163. ac_prog_cc_stdc=c11
  4164. fi
  4165. fi
  4166. if test x$ac_prog_cc_stdc = xno
  4167. then :
  4168. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  4169. printf %s "checking for $CC option to enable C99 features... " >&6; }
  4170. if test ${ac_cv_prog_cc_c99+y}
  4171. then :
  4172. printf %s "(cached) " >&6
  4173. else $as_nop
  4174. ac_cv_prog_cc_c99=no
  4175. ac_save_CC=$CC
  4176. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4177. /* end confdefs.h. */
  4178. $ac_c_conftest_c99_program
  4179. _ACEOF
  4180. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  4181. do
  4182. CC="$ac_save_CC $ac_arg"
  4183. if ac_fn_c_try_compile "$LINENO"
  4184. then :
  4185. ac_cv_prog_cc_c99=$ac_arg
  4186. fi
  4187. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4188. test "x$ac_cv_prog_cc_c99" != "xno" && break
  4189. done
  4190. rm -f conftest.$ac_ext
  4191. CC=$ac_save_CC
  4192. fi
  4193. if test "x$ac_cv_prog_cc_c99" = xno
  4194. then :
  4195. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4196. printf "%s\n" "unsupported" >&6; }
  4197. else $as_nop
  4198. if test "x$ac_cv_prog_cc_c99" = x
  4199. then :
  4200. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4201. printf "%s\n" "none needed" >&6; }
  4202. else $as_nop
  4203. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  4204. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  4205. CC="$CC $ac_cv_prog_cc_c99"
  4206. fi
  4207. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  4208. ac_prog_cc_stdc=c99
  4209. fi
  4210. fi
  4211. if test x$ac_prog_cc_stdc = xno
  4212. then :
  4213. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  4214. printf %s "checking for $CC option to enable C89 features... " >&6; }
  4215. if test ${ac_cv_prog_cc_c89+y}
  4216. then :
  4217. printf %s "(cached) " >&6
  4218. else $as_nop
  4219. ac_cv_prog_cc_c89=no
  4220. ac_save_CC=$CC
  4221. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4222. /* end confdefs.h. */
  4223. $ac_c_conftest_c89_program
  4224. _ACEOF
  4225. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4226. do
  4227. CC="$ac_save_CC $ac_arg"
  4228. if ac_fn_c_try_compile "$LINENO"
  4229. then :
  4230. ac_cv_prog_cc_c89=$ac_arg
  4231. fi
  4232. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4233. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4234. done
  4235. rm -f conftest.$ac_ext
  4236. CC=$ac_save_CC
  4237. fi
  4238. if test "x$ac_cv_prog_cc_c89" = xno
  4239. then :
  4240. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4241. printf "%s\n" "unsupported" >&6; }
  4242. else $as_nop
  4243. if test "x$ac_cv_prog_cc_c89" = x
  4244. then :
  4245. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4246. printf "%s\n" "none needed" >&6; }
  4247. else $as_nop
  4248. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4249. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  4250. CC="$CC $ac_cv_prog_cc_c89"
  4251. fi
  4252. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  4253. ac_prog_cc_stdc=c89
  4254. fi
  4255. fi
  4256. ac_ext=c
  4257. ac_cpp='$CPP $CPPFLAGS'
  4258. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4259. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4260. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4261. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4262. printf %s "checking for a sed that does not truncate output... " >&6; }
  4263. if test ${ac_cv_path_SED+y}
  4264. then :
  4265. printf %s "(cached) " >&6
  4266. else $as_nop
  4267. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4268. for ac_i in 1 2 3 4 5 6 7; do
  4269. ac_script="$ac_script$as_nl$ac_script"
  4270. done
  4271. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4272. { ac_script=; unset ac_script;}
  4273. if test -z "$SED"; then
  4274. ac_path_SED_found=false
  4275. # Loop through the user's path and test for each of PROGNAME-LIST
  4276. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4277. for as_dir in $PATH
  4278. do
  4279. IFS=$as_save_IFS
  4280. case $as_dir in #(((
  4281. '') as_dir=./ ;;
  4282. */) ;;
  4283. *) as_dir=$as_dir/ ;;
  4284. esac
  4285. for ac_prog in sed gsed
  4286. do
  4287. for ac_exec_ext in '' $ac_executable_extensions; do
  4288. ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
  4289. as_fn_executable_p "$ac_path_SED" || continue
  4290. # Check for GNU ac_path_SED and select it if it is found.
  4291. # Check for GNU $ac_path_SED
  4292. case `"$ac_path_SED" --version 2>&1` in
  4293. *GNU*)
  4294. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4295. *)
  4296. ac_count=0
  4297. printf %s 0123456789 >"conftest.in"
  4298. while :
  4299. do
  4300. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4301. mv "conftest.tmp" "conftest.in"
  4302. cp "conftest.in" "conftest.nl"
  4303. printf "%s\n" '' >> "conftest.nl"
  4304. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4305. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4306. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4307. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4308. # Best one so far, save it but keep looking for a better one
  4309. ac_cv_path_SED="$ac_path_SED"
  4310. ac_path_SED_max=$ac_count
  4311. fi
  4312. # 10*(2^10) chars as input seems more than enough
  4313. test $ac_count -gt 10 && break
  4314. done
  4315. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4316. esac
  4317. $ac_path_SED_found && break 3
  4318. done
  4319. done
  4320. done
  4321. IFS=$as_save_IFS
  4322. if test -z "$ac_cv_path_SED"; then
  4323. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4324. fi
  4325. else
  4326. ac_cv_path_SED=$SED
  4327. fi
  4328. fi
  4329. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4330. printf "%s\n" "$ac_cv_path_SED" >&6; }
  4331. SED="$ac_cv_path_SED"
  4332. rm -f conftest.sed
  4333. test -z "$SED" && SED=sed
  4334. Xsed="$SED -e 1s/^X//"
  4335. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4336. printf %s "checking for grep that handles long lines and -e... " >&6; }
  4337. if test ${ac_cv_path_GREP+y}
  4338. then :
  4339. printf %s "(cached) " >&6
  4340. else $as_nop
  4341. if test -z "$GREP"; then
  4342. ac_path_GREP_found=false
  4343. # Loop through the user's path and test for each of PROGNAME-LIST
  4344. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4345. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4346. do
  4347. IFS=$as_save_IFS
  4348. case $as_dir in #(((
  4349. '') as_dir=./ ;;
  4350. */) ;;
  4351. *) as_dir=$as_dir/ ;;
  4352. esac
  4353. for ac_prog in grep ggrep
  4354. do
  4355. for ac_exec_ext in '' $ac_executable_extensions; do
  4356. ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
  4357. as_fn_executable_p "$ac_path_GREP" || continue
  4358. # Check for GNU ac_path_GREP and select it if it is found.
  4359. # Check for GNU $ac_path_GREP
  4360. case `"$ac_path_GREP" --version 2>&1` in
  4361. *GNU*)
  4362. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4363. *)
  4364. ac_count=0
  4365. printf %s 0123456789 >"conftest.in"
  4366. while :
  4367. do
  4368. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4369. mv "conftest.tmp" "conftest.in"
  4370. cp "conftest.in" "conftest.nl"
  4371. printf "%s\n" 'GREP' >> "conftest.nl"
  4372. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4373. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4374. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4375. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4376. # Best one so far, save it but keep looking for a better one
  4377. ac_cv_path_GREP="$ac_path_GREP"
  4378. ac_path_GREP_max=$ac_count
  4379. fi
  4380. # 10*(2^10) chars as input seems more than enough
  4381. test $ac_count -gt 10 && break
  4382. done
  4383. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4384. esac
  4385. $ac_path_GREP_found && break 3
  4386. done
  4387. done
  4388. done
  4389. IFS=$as_save_IFS
  4390. if test -z "$ac_cv_path_GREP"; then
  4391. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4392. fi
  4393. else
  4394. ac_cv_path_GREP=$GREP
  4395. fi
  4396. fi
  4397. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4398. printf "%s\n" "$ac_cv_path_GREP" >&6; }
  4399. GREP="$ac_cv_path_GREP"
  4400. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4401. printf %s "checking for egrep... " >&6; }
  4402. if test ${ac_cv_path_EGREP+y}
  4403. then :
  4404. printf %s "(cached) " >&6
  4405. else $as_nop
  4406. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4407. then ac_cv_path_EGREP="$GREP -E"
  4408. else
  4409. if test -z "$EGREP"; then
  4410. ac_path_EGREP_found=false
  4411. # Loop through the user's path and test for each of PROGNAME-LIST
  4412. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4413. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4414. do
  4415. IFS=$as_save_IFS
  4416. case $as_dir in #(((
  4417. '') as_dir=./ ;;
  4418. */) ;;
  4419. *) as_dir=$as_dir/ ;;
  4420. esac
  4421. for ac_prog in egrep
  4422. do
  4423. for ac_exec_ext in '' $ac_executable_extensions; do
  4424. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  4425. as_fn_executable_p "$ac_path_EGREP" || continue
  4426. # Check for GNU ac_path_EGREP and select it if it is found.
  4427. # Check for GNU $ac_path_EGREP
  4428. case `"$ac_path_EGREP" --version 2>&1` in
  4429. *GNU*)
  4430. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4431. *)
  4432. ac_count=0
  4433. printf %s 0123456789 >"conftest.in"
  4434. while :
  4435. do
  4436. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4437. mv "conftest.tmp" "conftest.in"
  4438. cp "conftest.in" "conftest.nl"
  4439. printf "%s\n" 'EGREP' >> "conftest.nl"
  4440. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4441. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4442. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4443. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4444. # Best one so far, save it but keep looking for a better one
  4445. ac_cv_path_EGREP="$ac_path_EGREP"
  4446. ac_path_EGREP_max=$ac_count
  4447. fi
  4448. # 10*(2^10) chars as input seems more than enough
  4449. test $ac_count -gt 10 && break
  4450. done
  4451. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4452. esac
  4453. $ac_path_EGREP_found && break 3
  4454. done
  4455. done
  4456. done
  4457. IFS=$as_save_IFS
  4458. if test -z "$ac_cv_path_EGREP"; then
  4459. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4460. fi
  4461. else
  4462. ac_cv_path_EGREP=$EGREP
  4463. fi
  4464. fi
  4465. fi
  4466. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4467. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  4468. EGREP="$ac_cv_path_EGREP"
  4469. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4470. printf %s "checking for fgrep... " >&6; }
  4471. if test ${ac_cv_path_FGREP+y}
  4472. then :
  4473. printf %s "(cached) " >&6
  4474. else $as_nop
  4475. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4476. then ac_cv_path_FGREP="$GREP -F"
  4477. else
  4478. if test -z "$FGREP"; then
  4479. ac_path_FGREP_found=false
  4480. # Loop through the user's path and test for each of PROGNAME-LIST
  4481. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4482. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4483. do
  4484. IFS=$as_save_IFS
  4485. case $as_dir in #(((
  4486. '') as_dir=./ ;;
  4487. */) ;;
  4488. *) as_dir=$as_dir/ ;;
  4489. esac
  4490. for ac_prog in fgrep
  4491. do
  4492. for ac_exec_ext in '' $ac_executable_extensions; do
  4493. ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
  4494. as_fn_executable_p "$ac_path_FGREP" || continue
  4495. # Check for GNU ac_path_FGREP and select it if it is found.
  4496. # Check for GNU $ac_path_FGREP
  4497. case `"$ac_path_FGREP" --version 2>&1` in
  4498. *GNU*)
  4499. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4500. *)
  4501. ac_count=0
  4502. printf %s 0123456789 >"conftest.in"
  4503. while :
  4504. do
  4505. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4506. mv "conftest.tmp" "conftest.in"
  4507. cp "conftest.in" "conftest.nl"
  4508. printf "%s\n" 'FGREP' >> "conftest.nl"
  4509. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4510. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4511. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4512. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4513. # Best one so far, save it but keep looking for a better one
  4514. ac_cv_path_FGREP="$ac_path_FGREP"
  4515. ac_path_FGREP_max=$ac_count
  4516. fi
  4517. # 10*(2^10) chars as input seems more than enough
  4518. test $ac_count -gt 10 && break
  4519. done
  4520. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4521. esac
  4522. $ac_path_FGREP_found && break 3
  4523. done
  4524. done
  4525. done
  4526. IFS=$as_save_IFS
  4527. if test -z "$ac_cv_path_FGREP"; then
  4528. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4529. fi
  4530. else
  4531. ac_cv_path_FGREP=$FGREP
  4532. fi
  4533. fi
  4534. fi
  4535. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4536. printf "%s\n" "$ac_cv_path_FGREP" >&6; }
  4537. FGREP="$ac_cv_path_FGREP"
  4538. test -z "$GREP" && GREP=grep
  4539. # Check whether --with-gnu-ld was given.
  4540. if test ${with_gnu_ld+y}
  4541. then :
  4542. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  4543. else $as_nop
  4544. with_gnu_ld=no
  4545. fi
  4546. ac_prog=ld
  4547. if test yes = "$GCC"; then
  4548. # Check if gcc -print-prog-name=ld gives a path.
  4549. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4550. printf %s "checking for ld used by $CC... " >&6; }
  4551. case $host in
  4552. *-*-mingw*)
  4553. # gcc leaves a trailing carriage return, which upsets mingw
  4554. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4555. *)
  4556. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4557. esac
  4558. case $ac_prog in
  4559. # Accept absolute paths.
  4560. [\\/]* | ?:[\\/]*)
  4561. re_direlt='/[^/][^/]*/\.\./'
  4562. # Canonicalize the pathname of ld
  4563. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4564. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4565. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4566. done
  4567. test -z "$LD" && LD=$ac_prog
  4568. ;;
  4569. "")
  4570. # If it fails, then pretend we aren't using GCC.
  4571. ac_prog=ld
  4572. ;;
  4573. *)
  4574. # If it is relative, then search for the first ld in PATH.
  4575. with_gnu_ld=unknown
  4576. ;;
  4577. esac
  4578. elif test yes = "$with_gnu_ld"; then
  4579. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4580. printf %s "checking for GNU ld... " >&6; }
  4581. else
  4582. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4583. printf %s "checking for non-GNU ld... " >&6; }
  4584. fi
  4585. if test ${lt_cv_path_LD+y}
  4586. then :
  4587. printf %s "(cached) " >&6
  4588. else $as_nop
  4589. if test -z "$LD"; then
  4590. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4591. for ac_dir in $PATH; do
  4592. IFS=$lt_save_ifs
  4593. test -z "$ac_dir" && ac_dir=.
  4594. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4595. lt_cv_path_LD=$ac_dir/$ac_prog
  4596. # Check to see if the program is GNU ld. I'd rather use --version,
  4597. # but apparently some variants of GNU ld only accept -v.
  4598. # Break only if it was the GNU/non-GNU ld that we prefer.
  4599. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4600. *GNU* | *'with BFD'*)
  4601. test no != "$with_gnu_ld" && break
  4602. ;;
  4603. *)
  4604. test yes != "$with_gnu_ld" && break
  4605. ;;
  4606. esac
  4607. fi
  4608. done
  4609. IFS=$lt_save_ifs
  4610. else
  4611. lt_cv_path_LD=$LD # Let the user override the test with a path.
  4612. fi
  4613. fi
  4614. LD=$lt_cv_path_LD
  4615. if test -n "$LD"; then
  4616. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4617. printf "%s\n" "$LD" >&6; }
  4618. else
  4619. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4620. printf "%s\n" "no" >&6; }
  4621. fi
  4622. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4623. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4624. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  4625. if test ${lt_cv_prog_gnu_ld+y}
  4626. then :
  4627. printf %s "(cached) " >&6
  4628. else $as_nop
  4629. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4630. case `$LD -v 2>&1 </dev/null` in
  4631. *GNU* | *'with BFD'*)
  4632. lt_cv_prog_gnu_ld=yes
  4633. ;;
  4634. *)
  4635. lt_cv_prog_gnu_ld=no
  4636. ;;
  4637. esac
  4638. fi
  4639. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4640. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  4641. with_gnu_ld=$lt_cv_prog_gnu_ld
  4642. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4643. printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4644. if test ${lt_cv_path_NM+y}
  4645. then :
  4646. printf %s "(cached) " >&6
  4647. else $as_nop
  4648. if test -n "$NM"; then
  4649. # Let the user override the test.
  4650. lt_cv_path_NM=$NM
  4651. else
  4652. lt_nm_to_check=${ac_tool_prefix}nm
  4653. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4654. lt_nm_to_check="$lt_nm_to_check nm"
  4655. fi
  4656. for lt_tmp_nm in $lt_nm_to_check; do
  4657. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4658. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4659. IFS=$lt_save_ifs
  4660. test -z "$ac_dir" && ac_dir=.
  4661. tmp_nm=$ac_dir/$lt_tmp_nm
  4662. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  4663. # Check to see if the nm accepts a BSD-compat flag.
  4664. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  4665. # nm: unknown option "B" ignored
  4666. # Tru64's nm complains that /dev/null is an invalid object file
  4667. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  4668. case $build_os in
  4669. mingw*) lt_bad_file=conftest.nm/nofile ;;
  4670. *) lt_bad_file=/dev/null ;;
  4671. esac
  4672. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  4673. *$lt_bad_file* | *'Invalid file or object type'*)
  4674. lt_cv_path_NM="$tmp_nm -B"
  4675. break 2
  4676. ;;
  4677. *)
  4678. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4679. */dev/null*)
  4680. lt_cv_path_NM="$tmp_nm -p"
  4681. break 2
  4682. ;;
  4683. *)
  4684. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4685. continue # so that we can try to find one that supports BSD flags
  4686. ;;
  4687. esac
  4688. ;;
  4689. esac
  4690. fi
  4691. done
  4692. IFS=$lt_save_ifs
  4693. done
  4694. : ${lt_cv_path_NM=no}
  4695. fi
  4696. fi
  4697. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4698. printf "%s\n" "$lt_cv_path_NM" >&6; }
  4699. if test no != "$lt_cv_path_NM"; then
  4700. NM=$lt_cv_path_NM
  4701. else
  4702. # Didn't find any BSD compatible name lister, look for dumpbin.
  4703. if test -n "$DUMPBIN"; then :
  4704. # Let the user override the test.
  4705. else
  4706. if test -n "$ac_tool_prefix"; then
  4707. for ac_prog in dumpbin "link -dump"
  4708. do
  4709. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4710. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4711. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4712. printf %s "checking for $ac_word... " >&6; }
  4713. if test ${ac_cv_prog_DUMPBIN+y}
  4714. then :
  4715. printf %s "(cached) " >&6
  4716. else $as_nop
  4717. if test -n "$DUMPBIN"; then
  4718. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4719. else
  4720. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4721. for as_dir in $PATH
  4722. do
  4723. IFS=$as_save_IFS
  4724. case $as_dir in #(((
  4725. '') as_dir=./ ;;
  4726. */) ;;
  4727. *) as_dir=$as_dir/ ;;
  4728. esac
  4729. for ac_exec_ext in '' $ac_executable_extensions; do
  4730. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4731. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4732. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4733. break 2
  4734. fi
  4735. done
  4736. done
  4737. IFS=$as_save_IFS
  4738. fi
  4739. fi
  4740. DUMPBIN=$ac_cv_prog_DUMPBIN
  4741. if test -n "$DUMPBIN"; then
  4742. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4743. printf "%s\n" "$DUMPBIN" >&6; }
  4744. else
  4745. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4746. printf "%s\n" "no" >&6; }
  4747. fi
  4748. test -n "$DUMPBIN" && break
  4749. done
  4750. fi
  4751. if test -z "$DUMPBIN"; then
  4752. ac_ct_DUMPBIN=$DUMPBIN
  4753. for ac_prog in dumpbin "link -dump"
  4754. do
  4755. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4756. set dummy $ac_prog; ac_word=$2
  4757. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4758. printf %s "checking for $ac_word... " >&6; }
  4759. if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
  4760. then :
  4761. printf %s "(cached) " >&6
  4762. else $as_nop
  4763. if test -n "$ac_ct_DUMPBIN"; then
  4764. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4765. else
  4766. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4767. for as_dir in $PATH
  4768. do
  4769. IFS=$as_save_IFS
  4770. case $as_dir in #(((
  4771. '') as_dir=./ ;;
  4772. */) ;;
  4773. *) as_dir=$as_dir/ ;;
  4774. esac
  4775. for ac_exec_ext in '' $ac_executable_extensions; do
  4776. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4777. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4778. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4779. break 2
  4780. fi
  4781. done
  4782. done
  4783. IFS=$as_save_IFS
  4784. fi
  4785. fi
  4786. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4787. if test -n "$ac_ct_DUMPBIN"; then
  4788. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4789. printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
  4790. else
  4791. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4792. printf "%s\n" "no" >&6; }
  4793. fi
  4794. test -n "$ac_ct_DUMPBIN" && break
  4795. done
  4796. if test "x$ac_ct_DUMPBIN" = x; then
  4797. DUMPBIN=":"
  4798. else
  4799. case $cross_compiling:$ac_tool_warned in
  4800. yes:)
  4801. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4802. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4803. ac_tool_warned=yes ;;
  4804. esac
  4805. DUMPBIN=$ac_ct_DUMPBIN
  4806. fi
  4807. fi
  4808. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  4809. *COFF*)
  4810. DUMPBIN="$DUMPBIN -symbols -headers"
  4811. ;;
  4812. *)
  4813. DUMPBIN=:
  4814. ;;
  4815. esac
  4816. fi
  4817. if test : != "$DUMPBIN"; then
  4818. NM=$DUMPBIN
  4819. fi
  4820. fi
  4821. test -z "$NM" && NM=nm
  4822. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4823. printf %s "checking the name lister ($NM) interface... " >&6; }
  4824. if test ${lt_cv_nm_interface+y}
  4825. then :
  4826. printf %s "(cached) " >&6
  4827. else $as_nop
  4828. lt_cv_nm_interface="BSD nm"
  4829. echo "int some_variable = 0;" > conftest.$ac_ext
  4830. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4831. (eval "$ac_compile" 2>conftest.err)
  4832. cat conftest.err >&5
  4833. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4834. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4835. cat conftest.err >&5
  4836. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4837. cat conftest.out >&5
  4838. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4839. lt_cv_nm_interface="MS dumpbin"
  4840. fi
  4841. rm -f conftest*
  4842. fi
  4843. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4844. printf "%s\n" "$lt_cv_nm_interface" >&6; }
  4845. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4846. printf %s "checking whether ln -s works... " >&6; }
  4847. LN_S=$as_ln_s
  4848. if test "$LN_S" = "ln -s"; then
  4849. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4850. printf "%s\n" "yes" >&6; }
  4851. else
  4852. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4853. printf "%s\n" "no, using $LN_S" >&6; }
  4854. fi
  4855. # find the maximum length of command line arguments
  4856. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4857. printf %s "checking the maximum length of command line arguments... " >&6; }
  4858. if test ${lt_cv_sys_max_cmd_len+y}
  4859. then :
  4860. printf %s "(cached) " >&6
  4861. else $as_nop
  4862. i=0
  4863. teststring=ABCD
  4864. case $build_os in
  4865. msdosdjgpp*)
  4866. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4867. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4868. # during glob expansion). Even if it were fixed, the result of this
  4869. # check would be larger than it should be.
  4870. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4871. ;;
  4872. gnu*)
  4873. # Under GNU Hurd, this test is not required because there is
  4874. # no limit to the length of command line arguments.
  4875. # Libtool will interpret -1 as no limit whatsoever
  4876. lt_cv_sys_max_cmd_len=-1;
  4877. ;;
  4878. cygwin* | mingw* | cegcc*)
  4879. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4880. # about 5 minutes as the teststring grows exponentially.
  4881. # Worse, since 9x/ME are not pre-emptively multitasking,
  4882. # you end up with a "frozen" computer, even though with patience
  4883. # the test eventually succeeds (with a max line length of 256k).
  4884. # Instead, let's just punt: use the minimum linelength reported by
  4885. # all of the supported platforms: 8192 (on NT/2K/XP).
  4886. lt_cv_sys_max_cmd_len=8192;
  4887. ;;
  4888. mint*)
  4889. # On MiNT this can take a long time and run out of memory.
  4890. lt_cv_sys_max_cmd_len=8192;
  4891. ;;
  4892. amigaos*)
  4893. # On AmigaOS with pdksh, this test takes hours, literally.
  4894. # So we just punt and use a minimum line length of 8192.
  4895. lt_cv_sys_max_cmd_len=8192;
  4896. ;;
  4897. bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
  4898. # This has been around since 386BSD, at least. Likely further.
  4899. if test -x /sbin/sysctl; then
  4900. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4901. elif test -x /usr/sbin/sysctl; then
  4902. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4903. else
  4904. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4905. fi
  4906. # And add a safety zone
  4907. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4908. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4909. ;;
  4910. interix*)
  4911. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4912. lt_cv_sys_max_cmd_len=196608
  4913. ;;
  4914. os2*)
  4915. # The test takes a long time on OS/2.
  4916. lt_cv_sys_max_cmd_len=8192
  4917. ;;
  4918. osf*)
  4919. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4920. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4921. # nice to cause kernel panics so lets avoid the loop below.
  4922. # First set a reasonable default.
  4923. lt_cv_sys_max_cmd_len=16384
  4924. #
  4925. if test -x /sbin/sysconfig; then
  4926. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4927. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4928. esac
  4929. fi
  4930. ;;
  4931. sco3.2v5*)
  4932. lt_cv_sys_max_cmd_len=102400
  4933. ;;
  4934. sysv5* | sco5v6* | sysv4.2uw2*)
  4935. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4936. if test -n "$kargmax"; then
  4937. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4938. else
  4939. lt_cv_sys_max_cmd_len=32768
  4940. fi
  4941. ;;
  4942. *)
  4943. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4944. if test -n "$lt_cv_sys_max_cmd_len" && \
  4945. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4946. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4947. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4948. else
  4949. # Make teststring a little bigger before we do anything with it.
  4950. # a 1K string should be a reasonable start.
  4951. for i in 1 2 3 4 5 6 7 8; do
  4952. teststring=$teststring$teststring
  4953. done
  4954. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4955. # If test is not a shell built-in, we'll probably end up computing a
  4956. # maximum length that is only half of the actual maximum length, but
  4957. # we can't tell.
  4958. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  4959. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4960. test 17 != "$i" # 1/2 MB should be enough
  4961. do
  4962. i=`expr $i + 1`
  4963. teststring=$teststring$teststring
  4964. done
  4965. # Only check the string length outside the loop.
  4966. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4967. teststring=
  4968. # Add a significant safety factor because C++ compilers can tack on
  4969. # massive amounts of additional arguments before passing them to the
  4970. # linker. It appears as though 1/2 is a usable value.
  4971. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4972. fi
  4973. ;;
  4974. esac
  4975. fi
  4976. if test -n "$lt_cv_sys_max_cmd_len"; then
  4977. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4978. printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
  4979. else
  4980. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4981. printf "%s\n" "none" >&6; }
  4982. fi
  4983. max_cmd_len=$lt_cv_sys_max_cmd_len
  4984. : ${CP="cp -f"}
  4985. : ${MV="mv -f"}
  4986. : ${RM="rm -f"}
  4987. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4988. lt_unset=unset
  4989. else
  4990. lt_unset=false
  4991. fi
  4992. # test EBCDIC or ASCII
  4993. case `echo X|tr X '\101'` in
  4994. A) # ASCII based system
  4995. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4996. lt_SP2NL='tr \040 \012'
  4997. lt_NL2SP='tr \015\012 \040\040'
  4998. ;;
  4999. *) # EBCDIC based system
  5000. lt_SP2NL='tr \100 \n'
  5001. lt_NL2SP='tr \r\n \100\100'
  5002. ;;
  5003. esac
  5004. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5005. printf %s "checking how to convert $build file names to $host format... " >&6; }
  5006. if test ${lt_cv_to_host_file_cmd+y}
  5007. then :
  5008. printf %s "(cached) " >&6
  5009. else $as_nop
  5010. case $host in
  5011. *-*-mingw* )
  5012. case $build in
  5013. *-*-mingw* ) # actually msys
  5014. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5015. ;;
  5016. *-*-cygwin* )
  5017. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5018. ;;
  5019. * ) # otherwise, assume *nix
  5020. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5021. ;;
  5022. esac
  5023. ;;
  5024. *-*-cygwin* )
  5025. case $build in
  5026. *-*-mingw* ) # actually msys
  5027. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5028. ;;
  5029. *-*-cygwin* )
  5030. lt_cv_to_host_file_cmd=func_convert_file_noop
  5031. ;;
  5032. * ) # otherwise, assume *nix
  5033. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5034. ;;
  5035. esac
  5036. ;;
  5037. * ) # unhandled hosts (and "normal" native builds)
  5038. lt_cv_to_host_file_cmd=func_convert_file_noop
  5039. ;;
  5040. esac
  5041. fi
  5042. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5043. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5044. printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
  5045. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5046. printf %s "checking how to convert $build file names to toolchain format... " >&6; }
  5047. if test ${lt_cv_to_tool_file_cmd+y}
  5048. then :
  5049. printf %s "(cached) " >&6
  5050. else $as_nop
  5051. #assume ordinary cross tools, or native build.
  5052. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5053. case $host in
  5054. *-*-mingw* )
  5055. case $build in
  5056. *-*-mingw* ) # actually msys
  5057. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5058. ;;
  5059. esac
  5060. ;;
  5061. esac
  5062. fi
  5063. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5064. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5065. printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
  5066. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5067. printf %s "checking for $LD option to reload object files... " >&6; }
  5068. if test ${lt_cv_ld_reload_flag+y}
  5069. then :
  5070. printf %s "(cached) " >&6
  5071. else $as_nop
  5072. lt_cv_ld_reload_flag='-r'
  5073. fi
  5074. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5075. printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
  5076. reload_flag=$lt_cv_ld_reload_flag
  5077. case $reload_flag in
  5078. "" | " "*) ;;
  5079. *) reload_flag=" $reload_flag" ;;
  5080. esac
  5081. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5082. case $host_os in
  5083. cygwin* | mingw* | pw32* | cegcc*)
  5084. if test yes != "$GCC"; then
  5085. reload_cmds=false
  5086. fi
  5087. ;;
  5088. darwin*)
  5089. if test yes = "$GCC"; then
  5090. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  5091. else
  5092. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5093. fi
  5094. ;;
  5095. esac
  5096. if test -n "$ac_tool_prefix"; then
  5097. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5098. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5099. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5100. printf %s "checking for $ac_word... " >&6; }
  5101. if test ${ac_cv_prog_OBJDUMP+y}
  5102. then :
  5103. printf %s "(cached) " >&6
  5104. else $as_nop
  5105. if test -n "$OBJDUMP"; then
  5106. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5107. else
  5108. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5109. for as_dir in $PATH
  5110. do
  5111. IFS=$as_save_IFS
  5112. case $as_dir in #(((
  5113. '') as_dir=./ ;;
  5114. */) ;;
  5115. *) as_dir=$as_dir/ ;;
  5116. esac
  5117. for ac_exec_ext in '' $ac_executable_extensions; do
  5118. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5119. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5120. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5121. break 2
  5122. fi
  5123. done
  5124. done
  5125. IFS=$as_save_IFS
  5126. fi
  5127. fi
  5128. OBJDUMP=$ac_cv_prog_OBJDUMP
  5129. if test -n "$OBJDUMP"; then
  5130. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5131. printf "%s\n" "$OBJDUMP" >&6; }
  5132. else
  5133. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5134. printf "%s\n" "no" >&6; }
  5135. fi
  5136. fi
  5137. if test -z "$ac_cv_prog_OBJDUMP"; then
  5138. ac_ct_OBJDUMP=$OBJDUMP
  5139. # Extract the first word of "objdump", so it can be a program name with args.
  5140. set dummy objdump; ac_word=$2
  5141. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5142. printf %s "checking for $ac_word... " >&6; }
  5143. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  5144. then :
  5145. printf %s "(cached) " >&6
  5146. else $as_nop
  5147. if test -n "$ac_ct_OBJDUMP"; then
  5148. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5149. else
  5150. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5151. for as_dir in $PATH
  5152. do
  5153. IFS=$as_save_IFS
  5154. case $as_dir in #(((
  5155. '') as_dir=./ ;;
  5156. */) ;;
  5157. *) as_dir=$as_dir/ ;;
  5158. esac
  5159. for ac_exec_ext in '' $ac_executable_extensions; do
  5160. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5161. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5162. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5163. break 2
  5164. fi
  5165. done
  5166. done
  5167. IFS=$as_save_IFS
  5168. fi
  5169. fi
  5170. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5171. if test -n "$ac_ct_OBJDUMP"; then
  5172. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5173. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  5174. else
  5175. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5176. printf "%s\n" "no" >&6; }
  5177. fi
  5178. if test "x$ac_ct_OBJDUMP" = x; then
  5179. OBJDUMP="false"
  5180. else
  5181. case $cross_compiling:$ac_tool_warned in
  5182. yes:)
  5183. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5184. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5185. ac_tool_warned=yes ;;
  5186. esac
  5187. OBJDUMP=$ac_ct_OBJDUMP
  5188. fi
  5189. else
  5190. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5191. fi
  5192. test -z "$OBJDUMP" && OBJDUMP=objdump
  5193. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5194. printf %s "checking how to recognize dependent libraries... " >&6; }
  5195. if test ${lt_cv_deplibs_check_method+y}
  5196. then :
  5197. printf %s "(cached) " >&6
  5198. else $as_nop
  5199. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5200. lt_cv_file_magic_test_file=
  5201. lt_cv_deplibs_check_method='unknown'
  5202. # Need to set the preceding variable on all platforms that support
  5203. # interlibrary dependencies.
  5204. # 'none' -- dependencies not supported.
  5205. # 'unknown' -- same as none, but documents that we really don't know.
  5206. # 'pass_all' -- all dependencies passed with no checks.
  5207. # 'test_compile' -- check by making test program.
  5208. # 'file_magic [[regex]]' -- check by looking for files in library path
  5209. # that responds to the $file_magic_cmd with a given extended regex.
  5210. # If you have 'file' or equivalent on your system and you're not sure
  5211. # whether 'pass_all' will *always* work, you probably want this one.
  5212. case $host_os in
  5213. aix[4-9]*)
  5214. lt_cv_deplibs_check_method=pass_all
  5215. ;;
  5216. beos*)
  5217. lt_cv_deplibs_check_method=pass_all
  5218. ;;
  5219. bsdi[45]*)
  5220. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5221. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5222. lt_cv_file_magic_test_file=/shlib/libc.so
  5223. ;;
  5224. cygwin*)
  5225. # func_win32_libid is a shell function defined in ltmain.sh
  5226. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5227. lt_cv_file_magic_cmd='func_win32_libid'
  5228. lt_cv_deplibs_check_method=pass_all # SDL customization
  5229. ;;
  5230. mingw* | pw32*)
  5231. # Base MSYS/MinGW do not provide the 'file' command needed by
  5232. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5233. # unless we find 'file', for example because we are cross-compiling.
  5234. if ( file / ) >/dev/null 2>&1; then
  5235. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5236. lt_cv_file_magic_cmd='func_win32_libid'
  5237. else
  5238. # Keep this pattern in sync with the one in func_win32_libid.
  5239. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5240. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5241. fi
  5242. lt_cv_deplibs_check_method=pass_all # SDL customization
  5243. ;;
  5244. cegcc*)
  5245. # use the weaker test based on 'objdump'. See mingw*.
  5246. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5247. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5248. ;;
  5249. darwin* | rhapsody*)
  5250. lt_cv_deplibs_check_method=pass_all
  5251. ;;
  5252. freebsd* | dragonfly* | midnightbsd*)
  5253. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5254. case $host_cpu in
  5255. i*86 )
  5256. # Not sure whether the presence of OpenBSD here was a mistake.
  5257. # Let's accept both of them until this is cleared up.
  5258. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5259. lt_cv_file_magic_cmd=/usr/bin/file
  5260. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5261. ;;
  5262. esac
  5263. else
  5264. lt_cv_deplibs_check_method=pass_all
  5265. fi
  5266. ;;
  5267. haiku*)
  5268. lt_cv_deplibs_check_method=pass_all
  5269. ;;
  5270. hpux10.20* | hpux11*)
  5271. lt_cv_file_magic_cmd=/usr/bin/file
  5272. case $host_cpu in
  5273. ia64*)
  5274. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5275. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5276. ;;
  5277. hppa*64*)
  5278. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  5279. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5280. ;;
  5281. *)
  5282. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5283. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5284. ;;
  5285. esac
  5286. ;;
  5287. interix[3-9]*)
  5288. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5289. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5290. ;;
  5291. irix5* | irix6* | nonstopux*)
  5292. case $LD in
  5293. *-32|*"-32 ") libmagic=32-bit;;
  5294. *-n32|*"-n32 ") libmagic=N32;;
  5295. *-64|*"-64 ") libmagic=64-bit;;
  5296. *) libmagic=never-match;;
  5297. esac
  5298. lt_cv_deplibs_check_method=pass_all
  5299. ;;
  5300. # This must be glibc/ELF.
  5301. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5302. lt_cv_deplibs_check_method=pass_all
  5303. ;;
  5304. netbsd*)
  5305. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5306. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5307. else
  5308. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5309. fi
  5310. ;;
  5311. newos6*)
  5312. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5313. lt_cv_file_magic_cmd=/usr/bin/file
  5314. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5315. ;;
  5316. *nto* | *qnx*)
  5317. lt_cv_deplibs_check_method=pass_all
  5318. ;;
  5319. openbsd* | bitrig*)
  5320. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5321. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5322. else
  5323. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5324. fi
  5325. ;;
  5326. osf3* | osf4* | osf5*)
  5327. lt_cv_deplibs_check_method=pass_all
  5328. ;;
  5329. rdos*)
  5330. lt_cv_deplibs_check_method=pass_all
  5331. ;;
  5332. solaris*)
  5333. lt_cv_deplibs_check_method=pass_all
  5334. ;;
  5335. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5336. lt_cv_deplibs_check_method=pass_all
  5337. ;;
  5338. sysv4 | sysv4.3*)
  5339. case $host_vendor in
  5340. motorola)
  5341. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
  5342. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5343. ;;
  5344. ncr)
  5345. lt_cv_deplibs_check_method=pass_all
  5346. ;;
  5347. sequent)
  5348. lt_cv_file_magic_cmd='/bin/file'
  5349. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5350. ;;
  5351. sni)
  5352. lt_cv_file_magic_cmd='/bin/file'
  5353. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5354. lt_cv_file_magic_test_file=/lib/libc.so
  5355. ;;
  5356. siemens)
  5357. lt_cv_deplibs_check_method=pass_all
  5358. ;;
  5359. pc)
  5360. lt_cv_deplibs_check_method=pass_all
  5361. ;;
  5362. esac
  5363. ;;
  5364. tpf*)
  5365. lt_cv_deplibs_check_method=pass_all
  5366. ;;
  5367. os2*)
  5368. lt_cv_deplibs_check_method=pass_all
  5369. ;;
  5370. esac
  5371. fi
  5372. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5373. printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
  5374. file_magic_glob=
  5375. want_nocaseglob=no
  5376. if test "$build" = "$host"; then
  5377. case $host_os in
  5378. mingw* | pw32*)
  5379. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5380. want_nocaseglob=yes
  5381. else
  5382. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5383. fi
  5384. ;;
  5385. esac
  5386. fi
  5387. file_magic_cmd=$lt_cv_file_magic_cmd
  5388. deplibs_check_method=$lt_cv_deplibs_check_method
  5389. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5390. if test -n "$ac_tool_prefix"; then
  5391. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5392. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5393. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5394. printf %s "checking for $ac_word... " >&6; }
  5395. if test ${ac_cv_prog_DLLTOOL+y}
  5396. then :
  5397. printf %s "(cached) " >&6
  5398. else $as_nop
  5399. if test -n "$DLLTOOL"; then
  5400. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5401. else
  5402. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5403. for as_dir in $PATH
  5404. do
  5405. IFS=$as_save_IFS
  5406. case $as_dir in #(((
  5407. '') as_dir=./ ;;
  5408. */) ;;
  5409. *) as_dir=$as_dir/ ;;
  5410. esac
  5411. for ac_exec_ext in '' $ac_executable_extensions; do
  5412. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5413. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5414. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5415. break 2
  5416. fi
  5417. done
  5418. done
  5419. IFS=$as_save_IFS
  5420. fi
  5421. fi
  5422. DLLTOOL=$ac_cv_prog_DLLTOOL
  5423. if test -n "$DLLTOOL"; then
  5424. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5425. printf "%s\n" "$DLLTOOL" >&6; }
  5426. else
  5427. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5428. printf "%s\n" "no" >&6; }
  5429. fi
  5430. fi
  5431. if test -z "$ac_cv_prog_DLLTOOL"; then
  5432. ac_ct_DLLTOOL=$DLLTOOL
  5433. # Extract the first word of "dlltool", so it can be a program name with args.
  5434. set dummy dlltool; ac_word=$2
  5435. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5436. printf %s "checking for $ac_word... " >&6; }
  5437. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  5438. then :
  5439. printf %s "(cached) " >&6
  5440. else $as_nop
  5441. if test -n "$ac_ct_DLLTOOL"; then
  5442. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5443. else
  5444. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5445. for as_dir in $PATH
  5446. do
  5447. IFS=$as_save_IFS
  5448. case $as_dir in #(((
  5449. '') as_dir=./ ;;
  5450. */) ;;
  5451. *) as_dir=$as_dir/ ;;
  5452. esac
  5453. for ac_exec_ext in '' $ac_executable_extensions; do
  5454. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5455. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5456. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5457. break 2
  5458. fi
  5459. done
  5460. done
  5461. IFS=$as_save_IFS
  5462. fi
  5463. fi
  5464. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5465. if test -n "$ac_ct_DLLTOOL"; then
  5466. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5467. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  5468. else
  5469. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5470. printf "%s\n" "no" >&6; }
  5471. fi
  5472. if test "x$ac_ct_DLLTOOL" = x; then
  5473. DLLTOOL="false"
  5474. else
  5475. case $cross_compiling:$ac_tool_warned in
  5476. yes:)
  5477. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5478. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5479. ac_tool_warned=yes ;;
  5480. esac
  5481. DLLTOOL=$ac_ct_DLLTOOL
  5482. fi
  5483. else
  5484. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5485. fi
  5486. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5487. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5488. printf %s "checking how to associate runtime and link libraries... " >&6; }
  5489. if test ${lt_cv_sharedlib_from_linklib_cmd+y}
  5490. then :
  5491. printf %s "(cached) " >&6
  5492. else $as_nop
  5493. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5494. case $host_os in
  5495. cygwin* | mingw* | pw32* | cegcc*)
  5496. # two different shell functions defined in ltmain.sh;
  5497. # decide which one to use based on capabilities of $DLLTOOL
  5498. case `$DLLTOOL --help 2>&1` in
  5499. *--identify-strict*)
  5500. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5501. ;;
  5502. *)
  5503. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5504. ;;
  5505. esac
  5506. ;;
  5507. *)
  5508. # fallback: assume linklib IS sharedlib
  5509. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  5510. ;;
  5511. esac
  5512. fi
  5513. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5514. printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5515. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5516. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5517. if test -n "$ac_tool_prefix"; then
  5518. for ac_prog in ar
  5519. do
  5520. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5521. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5522. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5523. printf %s "checking for $ac_word... " >&6; }
  5524. if test ${ac_cv_prog_AR+y}
  5525. then :
  5526. printf %s "(cached) " >&6
  5527. else $as_nop
  5528. if test -n "$AR"; then
  5529. ac_cv_prog_AR="$AR" # Let the user override the test.
  5530. else
  5531. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5532. for as_dir in $PATH
  5533. do
  5534. IFS=$as_save_IFS
  5535. case $as_dir in #(((
  5536. '') as_dir=./ ;;
  5537. */) ;;
  5538. *) as_dir=$as_dir/ ;;
  5539. esac
  5540. for ac_exec_ext in '' $ac_executable_extensions; do
  5541. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5542. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5543. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5544. break 2
  5545. fi
  5546. done
  5547. done
  5548. IFS=$as_save_IFS
  5549. fi
  5550. fi
  5551. AR=$ac_cv_prog_AR
  5552. if test -n "$AR"; then
  5553. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5554. printf "%s\n" "$AR" >&6; }
  5555. else
  5556. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5557. printf "%s\n" "no" >&6; }
  5558. fi
  5559. test -n "$AR" && break
  5560. done
  5561. fi
  5562. if test -z "$AR"; then
  5563. ac_ct_AR=$AR
  5564. for ac_prog in ar
  5565. do
  5566. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5567. set dummy $ac_prog; ac_word=$2
  5568. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5569. printf %s "checking for $ac_word... " >&6; }
  5570. if test ${ac_cv_prog_ac_ct_AR+y}
  5571. then :
  5572. printf %s "(cached) " >&6
  5573. else $as_nop
  5574. if test -n "$ac_ct_AR"; then
  5575. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5576. else
  5577. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5578. for as_dir in $PATH
  5579. do
  5580. IFS=$as_save_IFS
  5581. case $as_dir in #(((
  5582. '') as_dir=./ ;;
  5583. */) ;;
  5584. *) as_dir=$as_dir/ ;;
  5585. esac
  5586. for ac_exec_ext in '' $ac_executable_extensions; do
  5587. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5588. ac_cv_prog_ac_ct_AR="$ac_prog"
  5589. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5590. break 2
  5591. fi
  5592. done
  5593. done
  5594. IFS=$as_save_IFS
  5595. fi
  5596. fi
  5597. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5598. if test -n "$ac_ct_AR"; then
  5599. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5600. printf "%s\n" "$ac_ct_AR" >&6; }
  5601. else
  5602. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5603. printf "%s\n" "no" >&6; }
  5604. fi
  5605. test -n "$ac_ct_AR" && break
  5606. done
  5607. if test "x$ac_ct_AR" = x; then
  5608. AR="false"
  5609. else
  5610. case $cross_compiling:$ac_tool_warned in
  5611. yes:)
  5612. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5613. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5614. ac_tool_warned=yes ;;
  5615. esac
  5616. AR=$ac_ct_AR
  5617. fi
  5618. fi
  5619. : ${AR=ar}
  5620. : ${AR_FLAGS=cru}
  5621. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5622. printf %s "checking for archiver @FILE support... " >&6; }
  5623. if test ${lt_cv_ar_at_file+y}
  5624. then :
  5625. printf %s "(cached) " >&6
  5626. else $as_nop
  5627. lt_cv_ar_at_file=no
  5628. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5629. /* end confdefs.h. */
  5630. int
  5631. main (void)
  5632. {
  5633. ;
  5634. return 0;
  5635. }
  5636. _ACEOF
  5637. if ac_fn_c_try_compile "$LINENO"
  5638. then :
  5639. echo conftest.$ac_objext > conftest.lst
  5640. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5641. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5642. (eval $lt_ar_try) 2>&5
  5643. ac_status=$?
  5644. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5645. test $ac_status = 0; }
  5646. if test 0 -eq "$ac_status"; then
  5647. # Ensure the archiver fails upon bogus file names.
  5648. rm -f conftest.$ac_objext libconftest.a
  5649. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5650. (eval $lt_ar_try) 2>&5
  5651. ac_status=$?
  5652. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5653. test $ac_status = 0; }
  5654. if test 0 -ne "$ac_status"; then
  5655. lt_cv_ar_at_file=@
  5656. fi
  5657. fi
  5658. rm -f conftest.* libconftest.a
  5659. fi
  5660. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5661. fi
  5662. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5663. printf "%s\n" "$lt_cv_ar_at_file" >&6; }
  5664. if test no = "$lt_cv_ar_at_file"; then
  5665. archiver_list_spec=
  5666. else
  5667. archiver_list_spec=$lt_cv_ar_at_file
  5668. fi
  5669. if test -n "$ac_tool_prefix"; then
  5670. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5671. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5672. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5673. printf %s "checking for $ac_word... " >&6; }
  5674. if test ${ac_cv_prog_STRIP+y}
  5675. then :
  5676. printf %s "(cached) " >&6
  5677. else $as_nop
  5678. if test -n "$STRIP"; then
  5679. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5680. else
  5681. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5682. for as_dir in $PATH
  5683. do
  5684. IFS=$as_save_IFS
  5685. case $as_dir in #(((
  5686. '') as_dir=./ ;;
  5687. */) ;;
  5688. *) as_dir=$as_dir/ ;;
  5689. esac
  5690. for ac_exec_ext in '' $ac_executable_extensions; do
  5691. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5692. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5693. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5694. break 2
  5695. fi
  5696. done
  5697. done
  5698. IFS=$as_save_IFS
  5699. fi
  5700. fi
  5701. STRIP=$ac_cv_prog_STRIP
  5702. if test -n "$STRIP"; then
  5703. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5704. printf "%s\n" "$STRIP" >&6; }
  5705. else
  5706. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5707. printf "%s\n" "no" >&6; }
  5708. fi
  5709. fi
  5710. if test -z "$ac_cv_prog_STRIP"; then
  5711. ac_ct_STRIP=$STRIP
  5712. # Extract the first word of "strip", so it can be a program name with args.
  5713. set dummy strip; ac_word=$2
  5714. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5715. printf %s "checking for $ac_word... " >&6; }
  5716. if test ${ac_cv_prog_ac_ct_STRIP+y}
  5717. then :
  5718. printf %s "(cached) " >&6
  5719. else $as_nop
  5720. if test -n "$ac_ct_STRIP"; then
  5721. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5722. else
  5723. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5724. for as_dir in $PATH
  5725. do
  5726. IFS=$as_save_IFS
  5727. case $as_dir in #(((
  5728. '') as_dir=./ ;;
  5729. */) ;;
  5730. *) as_dir=$as_dir/ ;;
  5731. esac
  5732. for ac_exec_ext in '' $ac_executable_extensions; do
  5733. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5734. ac_cv_prog_ac_ct_STRIP="strip"
  5735. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5736. break 2
  5737. fi
  5738. done
  5739. done
  5740. IFS=$as_save_IFS
  5741. fi
  5742. fi
  5743. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5744. if test -n "$ac_ct_STRIP"; then
  5745. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5746. printf "%s\n" "$ac_ct_STRIP" >&6; }
  5747. else
  5748. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5749. printf "%s\n" "no" >&6; }
  5750. fi
  5751. if test "x$ac_ct_STRIP" = x; then
  5752. STRIP=":"
  5753. else
  5754. case $cross_compiling:$ac_tool_warned in
  5755. yes:)
  5756. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5757. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5758. ac_tool_warned=yes ;;
  5759. esac
  5760. STRIP=$ac_ct_STRIP
  5761. fi
  5762. else
  5763. STRIP="$ac_cv_prog_STRIP"
  5764. fi
  5765. test -z "$STRIP" && STRIP=:
  5766. if test -n "$ac_tool_prefix"; then
  5767. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5768. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5769. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5770. printf %s "checking for $ac_word... " >&6; }
  5771. if test ${ac_cv_prog_RANLIB+y}
  5772. then :
  5773. printf %s "(cached) " >&6
  5774. else $as_nop
  5775. if test -n "$RANLIB"; then
  5776. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5777. else
  5778. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5779. for as_dir in $PATH
  5780. do
  5781. IFS=$as_save_IFS
  5782. case $as_dir in #(((
  5783. '') as_dir=./ ;;
  5784. */) ;;
  5785. *) as_dir=$as_dir/ ;;
  5786. esac
  5787. for ac_exec_ext in '' $ac_executable_extensions; do
  5788. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5789. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5790. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5791. break 2
  5792. fi
  5793. done
  5794. done
  5795. IFS=$as_save_IFS
  5796. fi
  5797. fi
  5798. RANLIB=$ac_cv_prog_RANLIB
  5799. if test -n "$RANLIB"; then
  5800. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5801. printf "%s\n" "$RANLIB" >&6; }
  5802. else
  5803. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5804. printf "%s\n" "no" >&6; }
  5805. fi
  5806. fi
  5807. if test -z "$ac_cv_prog_RANLIB"; then
  5808. ac_ct_RANLIB=$RANLIB
  5809. # Extract the first word of "ranlib", so it can be a program name with args.
  5810. set dummy ranlib; ac_word=$2
  5811. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5812. printf %s "checking for $ac_word... " >&6; }
  5813. if test ${ac_cv_prog_ac_ct_RANLIB+y}
  5814. then :
  5815. printf %s "(cached) " >&6
  5816. else $as_nop
  5817. if test -n "$ac_ct_RANLIB"; then
  5818. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5819. else
  5820. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5821. for as_dir in $PATH
  5822. do
  5823. IFS=$as_save_IFS
  5824. case $as_dir in #(((
  5825. '') as_dir=./ ;;
  5826. */) ;;
  5827. *) as_dir=$as_dir/ ;;
  5828. esac
  5829. for ac_exec_ext in '' $ac_executable_extensions; do
  5830. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5831. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5832. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5833. break 2
  5834. fi
  5835. done
  5836. done
  5837. IFS=$as_save_IFS
  5838. fi
  5839. fi
  5840. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5841. if test -n "$ac_ct_RANLIB"; then
  5842. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5843. printf "%s\n" "$ac_ct_RANLIB" >&6; }
  5844. else
  5845. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5846. printf "%s\n" "no" >&6; }
  5847. fi
  5848. if test "x$ac_ct_RANLIB" = x; then
  5849. RANLIB=":"
  5850. else
  5851. case $cross_compiling:$ac_tool_warned in
  5852. yes:)
  5853. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5854. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5855. ac_tool_warned=yes ;;
  5856. esac
  5857. RANLIB=$ac_ct_RANLIB
  5858. fi
  5859. else
  5860. RANLIB="$ac_cv_prog_RANLIB"
  5861. fi
  5862. test -z "$RANLIB" && RANLIB=:
  5863. # Determine commands to create old-style static archives.
  5864. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5865. old_postinstall_cmds='chmod 644 $oldlib'
  5866. old_postuninstall_cmds=
  5867. if test -n "$RANLIB"; then
  5868. case $host_os in
  5869. bitrig* | openbsd*)
  5870. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5871. ;;
  5872. *)
  5873. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5874. ;;
  5875. esac
  5876. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5877. fi
  5878. case $host_os in
  5879. darwin*)
  5880. lock_old_archive_extraction=yes ;;
  5881. *)
  5882. lock_old_archive_extraction=no ;;
  5883. esac
  5884. for ac_prog in gawk mawk nawk awk
  5885. do
  5886. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5887. set dummy $ac_prog; ac_word=$2
  5888. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5889. printf %s "checking for $ac_word... " >&6; }
  5890. if test ${ac_cv_prog_AWK+y}
  5891. then :
  5892. printf %s "(cached) " >&6
  5893. else $as_nop
  5894. if test -n "$AWK"; then
  5895. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5896. else
  5897. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5898. for as_dir in $PATH
  5899. do
  5900. IFS=$as_save_IFS
  5901. case $as_dir in #(((
  5902. '') as_dir=./ ;;
  5903. */) ;;
  5904. *) as_dir=$as_dir/ ;;
  5905. esac
  5906. for ac_exec_ext in '' $ac_executable_extensions; do
  5907. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5908. ac_cv_prog_AWK="$ac_prog"
  5909. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5910. break 2
  5911. fi
  5912. done
  5913. done
  5914. IFS=$as_save_IFS
  5915. fi
  5916. fi
  5917. AWK=$ac_cv_prog_AWK
  5918. if test -n "$AWK"; then
  5919. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5920. printf "%s\n" "$AWK" >&6; }
  5921. else
  5922. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5923. printf "%s\n" "no" >&6; }
  5924. fi
  5925. test -n "$AWK" && break
  5926. done
  5927. # If no C compiler was specified, use CC.
  5928. LTCC=${LTCC-"$CC"}
  5929. # If no C compiler flags were specified, use CFLAGS.
  5930. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5931. # Allow CC to be a program name with arguments.
  5932. compiler=$CC
  5933. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5934. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5935. printf %s "checking command to parse $NM output from $compiler object... " >&6; }
  5936. if test ${lt_cv_sys_global_symbol_pipe+y}
  5937. then :
  5938. printf %s "(cached) " >&6
  5939. else $as_nop
  5940. # These are sane defaults that work on at least a few old systems.
  5941. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5942. # Character class describing NM global symbol codes.
  5943. symcode='[BCDEGRST]'
  5944. # Regexp to match symbols that can be accessed directly from C.
  5945. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5946. # Define system-specific variables.
  5947. case $host_os in
  5948. aix*)
  5949. symcode='[BCDT]'
  5950. ;;
  5951. cygwin* | mingw* | pw32* | cegcc*)
  5952. symcode='[ABCDGISTW]'
  5953. ;;
  5954. hpux*)
  5955. if test ia64 = "$host_cpu"; then
  5956. symcode='[ABCDEGRST]'
  5957. fi
  5958. ;;
  5959. irix* | nonstopux*)
  5960. symcode='[BCDEGRST]'
  5961. ;;
  5962. osf*)
  5963. symcode='[BCDEGQRST]'
  5964. ;;
  5965. solaris*)
  5966. symcode='[BCDRT]'
  5967. ;;
  5968. sco3.2v5*)
  5969. symcode='[DT]'
  5970. ;;
  5971. sysv4.2uw2*)
  5972. symcode='[DT]'
  5973. ;;
  5974. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5975. symcode='[ABDT]'
  5976. ;;
  5977. sysv4)
  5978. symcode='[DFNSTU]'
  5979. ;;
  5980. esac
  5981. # If we're using GNU nm, then use its standard symbol codes.
  5982. case `$NM -V 2>&1` in
  5983. *GNU* | *'with BFD'*)
  5984. symcode='[ABCDGIRSTW]' ;;
  5985. esac
  5986. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5987. # Gets list of data symbols to import.
  5988. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  5989. # Adjust the below global symbol transforms to fixup imported variables.
  5990. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  5991. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  5992. lt_c_name_lib_hook="\
  5993. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  5994. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  5995. else
  5996. # Disable hooks by default.
  5997. lt_cv_sys_global_symbol_to_import=
  5998. lt_cdecl_hook=
  5999. lt_c_name_hook=
  6000. lt_c_name_lib_hook=
  6001. fi
  6002. # Transform an extracted symbol line into a proper C declaration.
  6003. # Some systems (esp. on ia64) link data and code symbols differently,
  6004. # so use this general approach.
  6005. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  6006. $lt_cdecl_hook\
  6007. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  6008. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  6009. # Transform an extracted symbol line into symbol name and symbol address
  6010. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  6011. $lt_c_name_hook\
  6012. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6013. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  6014. # Transform an extracted symbol line into symbol name with lib prefix and
  6015. # symbol address.
  6016. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  6017. $lt_c_name_lib_hook\
  6018. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6019. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  6020. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  6021. # Handle CRLF in mingw tool chain
  6022. opt_cr=
  6023. case $build_os in
  6024. mingw*)
  6025. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6026. ;;
  6027. esac
  6028. # Try without a prefix underscore, then with it.
  6029. for ac_symprfx in "" "_"; do
  6030. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6031. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6032. # Write the raw and C identifiers.
  6033. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6034. # Fake it for dumpbin and say T for any non-static function,
  6035. # D for any global variable and I for any imported variable.
  6036. # Also find C++ and __fastcall symbols from MSVC++,
  6037. # which start with @ or ?.
  6038. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6039. " {last_section=section; section=\$ 3};"\
  6040. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6041. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6042. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  6043. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  6044. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  6045. " \$ 0!~/External *\|/{next};"\
  6046. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6047. " {if(hide[section]) next};"\
  6048. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  6049. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  6050. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  6051. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  6052. " ' prfx=^$ac_symprfx"
  6053. else
  6054. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6055. fi
  6056. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6057. # Check to see that the pipe works correctly.
  6058. pipe_works=no
  6059. rm -f conftest*
  6060. cat > conftest.$ac_ext <<_LT_EOF
  6061. #ifdef __cplusplus
  6062. extern "C" {
  6063. #endif
  6064. char nm_test_var;
  6065. void nm_test_func(void);
  6066. void nm_test_func(void){}
  6067. #ifdef __cplusplus
  6068. }
  6069. #endif
  6070. int main(){nm_test_var='a';nm_test_func();return(0);}
  6071. _LT_EOF
  6072. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6073. (eval $ac_compile) 2>&5
  6074. ac_status=$?
  6075. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6076. test $ac_status = 0; }; then
  6077. # Now try to grab the symbols.
  6078. nlist=conftest.nm
  6079. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6080. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6081. ac_status=$?
  6082. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6083. test $ac_status = 0; } && test -s "$nlist"; then
  6084. # Try sorting and uniquifying the output.
  6085. if sort "$nlist" | uniq > "$nlist"T; then
  6086. mv -f "$nlist"T "$nlist"
  6087. else
  6088. rm -f "$nlist"T
  6089. fi
  6090. # Make sure that we snagged all the symbols we need.
  6091. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6092. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6093. cat <<_LT_EOF > conftest.$ac_ext
  6094. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6095. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  6096. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  6097. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6098. # define LT_DLSYM_CONST
  6099. #elif defined __osf__
  6100. /* This system does not cope well with relocations in const data. */
  6101. # define LT_DLSYM_CONST
  6102. #else
  6103. # define LT_DLSYM_CONST const
  6104. #endif
  6105. #ifdef __cplusplus
  6106. extern "C" {
  6107. #endif
  6108. _LT_EOF
  6109. # Now generate the symbol file.
  6110. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6111. cat <<_LT_EOF >> conftest.$ac_ext
  6112. /* The mapping between symbol names and symbols. */
  6113. LT_DLSYM_CONST struct {
  6114. const char *name;
  6115. void *address;
  6116. }
  6117. lt__PROGRAM__LTX_preloaded_symbols[] =
  6118. {
  6119. { "@PROGRAM@", (void *) 0 },
  6120. _LT_EOF
  6121. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6122. cat <<\_LT_EOF >> conftest.$ac_ext
  6123. {0, (void *) 0}
  6124. };
  6125. /* This works around a problem in FreeBSD linker */
  6126. #ifdef FREEBSD_WORKAROUND
  6127. static const void *lt_preloaded_setup() {
  6128. return lt__PROGRAM__LTX_preloaded_symbols;
  6129. }
  6130. #endif
  6131. #ifdef __cplusplus
  6132. }
  6133. #endif
  6134. _LT_EOF
  6135. # Now try linking the two files.
  6136. mv conftest.$ac_objext conftstm.$ac_objext
  6137. lt_globsym_save_LIBS=$LIBS
  6138. lt_globsym_save_CFLAGS=$CFLAGS
  6139. LIBS=conftstm.$ac_objext
  6140. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6141. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6142. (eval $ac_link) 2>&5
  6143. ac_status=$?
  6144. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6145. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  6146. pipe_works=yes
  6147. fi
  6148. LIBS=$lt_globsym_save_LIBS
  6149. CFLAGS=$lt_globsym_save_CFLAGS
  6150. else
  6151. echo "cannot find nm_test_func in $nlist" >&5
  6152. fi
  6153. else
  6154. echo "cannot find nm_test_var in $nlist" >&5
  6155. fi
  6156. else
  6157. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6158. fi
  6159. else
  6160. echo "$progname: failed program was:" >&5
  6161. cat conftest.$ac_ext >&5
  6162. fi
  6163. rm -rf conftest* conftst*
  6164. # Do not use the global_symbol_pipe unless it works.
  6165. if test yes = "$pipe_works"; then
  6166. break
  6167. else
  6168. lt_cv_sys_global_symbol_pipe=
  6169. fi
  6170. done
  6171. fi
  6172. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6173. lt_cv_sys_global_symbol_to_cdecl=
  6174. fi
  6175. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6176. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6177. printf "%s\n" "failed" >&6; }
  6178. else
  6179. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6180. printf "%s\n" "ok" >&6; }
  6181. fi
  6182. # Response file support.
  6183. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6184. nm_file_list_spec='@'
  6185. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6186. nm_file_list_spec='@'
  6187. fi
  6188. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6189. printf %s "checking for sysroot... " >&6; }
  6190. # Check whether --with-sysroot was given.
  6191. if test ${with_sysroot+y}
  6192. then :
  6193. withval=$with_sysroot;
  6194. else $as_nop
  6195. with_sysroot=no
  6196. fi
  6197. lt_sysroot=
  6198. case $with_sysroot in #(
  6199. yes)
  6200. if test yes = "$GCC"; then
  6201. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6202. fi
  6203. ;; #(
  6204. /*)
  6205. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6206. ;; #(
  6207. no|'')
  6208. ;; #(
  6209. *)
  6210. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  6211. printf "%s\n" "$with_sysroot" >&6; }
  6212. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6213. ;;
  6214. esac
  6215. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6216. printf "%s\n" "${lt_sysroot:-no}" >&6; }
  6217. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  6218. printf %s "checking for a working dd... " >&6; }
  6219. if test ${ac_cv_path_lt_DD+y}
  6220. then :
  6221. printf %s "(cached) " >&6
  6222. else $as_nop
  6223. printf 0123456789abcdef0123456789abcdef >conftest.i
  6224. cat conftest.i conftest.i >conftest2.i
  6225. : ${lt_DD:=$DD}
  6226. if test -z "$lt_DD"; then
  6227. ac_path_lt_DD_found=false
  6228. # Loop through the user's path and test for each of PROGNAME-LIST
  6229. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6230. for as_dir in $PATH
  6231. do
  6232. IFS=$as_save_IFS
  6233. case $as_dir in #(((
  6234. '') as_dir=./ ;;
  6235. */) ;;
  6236. *) as_dir=$as_dir/ ;;
  6237. esac
  6238. for ac_prog in dd
  6239. do
  6240. for ac_exec_ext in '' $ac_executable_extensions; do
  6241. ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
  6242. as_fn_executable_p "$ac_path_lt_DD" || continue
  6243. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6244. cmp -s conftest.i conftest.out \
  6245. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  6246. fi
  6247. $ac_path_lt_DD_found && break 3
  6248. done
  6249. done
  6250. done
  6251. IFS=$as_save_IFS
  6252. if test -z "$ac_cv_path_lt_DD"; then
  6253. :
  6254. fi
  6255. else
  6256. ac_cv_path_lt_DD=$lt_DD
  6257. fi
  6258. rm -f conftest.i conftest2.i conftest.out
  6259. fi
  6260. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  6261. printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
  6262. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  6263. printf %s "checking how to truncate binary pipes... " >&6; }
  6264. if test ${lt_cv_truncate_bin+y}
  6265. then :
  6266. printf %s "(cached) " >&6
  6267. else $as_nop
  6268. printf 0123456789abcdef0123456789abcdef >conftest.i
  6269. cat conftest.i conftest.i >conftest2.i
  6270. lt_cv_truncate_bin=
  6271. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6272. cmp -s conftest.i conftest.out \
  6273. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  6274. fi
  6275. rm -f conftest.i conftest2.i conftest.out
  6276. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  6277. fi
  6278. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  6279. printf "%s\n" "$lt_cv_truncate_bin" >&6; }
  6280. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  6281. func_cc_basename ()
  6282. {
  6283. for cc_temp in $*""; do
  6284. case $cc_temp in
  6285. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6286. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6287. \-*) ;;
  6288. *) break;;
  6289. esac
  6290. done
  6291. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6292. }
  6293. # Check whether --enable-libtool-lock was given.
  6294. if test ${enable_libtool_lock+y}
  6295. then :
  6296. enableval=$enable_libtool_lock;
  6297. fi
  6298. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  6299. # Some flags need to be propagated to the compiler or linker for good
  6300. # libtool support.
  6301. case $host in
  6302. ia64-*-hpux*)
  6303. # Find out what ABI is being produced by ac_compile, and set mode
  6304. # options accordingly.
  6305. echo 'int i;' > conftest.$ac_ext
  6306. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6307. (eval $ac_compile) 2>&5
  6308. ac_status=$?
  6309. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6310. test $ac_status = 0; }; then
  6311. case `/usr/bin/file conftest.$ac_objext` in
  6312. *ELF-32*)
  6313. HPUX_IA64_MODE=32
  6314. ;;
  6315. *ELF-64*)
  6316. HPUX_IA64_MODE=64
  6317. ;;
  6318. esac
  6319. fi
  6320. rm -rf conftest*
  6321. ;;
  6322. *-*-irix6*)
  6323. # Find out what ABI is being produced by ac_compile, and set linker
  6324. # options accordingly.
  6325. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6326. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6327. (eval $ac_compile) 2>&5
  6328. ac_status=$?
  6329. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6330. test $ac_status = 0; }; then
  6331. if test yes = "$lt_cv_prog_gnu_ld"; then
  6332. case `/usr/bin/file conftest.$ac_objext` in
  6333. *32-bit*)
  6334. LD="${LD-ld} -melf32bsmip"
  6335. ;;
  6336. *N32*)
  6337. LD="${LD-ld} -melf32bmipn32"
  6338. ;;
  6339. *64-bit*)
  6340. LD="${LD-ld} -melf64bmip"
  6341. ;;
  6342. esac
  6343. else
  6344. case `/usr/bin/file conftest.$ac_objext` in
  6345. *32-bit*)
  6346. LD="${LD-ld} -32"
  6347. ;;
  6348. *N32*)
  6349. LD="${LD-ld} -n32"
  6350. ;;
  6351. *64-bit*)
  6352. LD="${LD-ld} -64"
  6353. ;;
  6354. esac
  6355. fi
  6356. fi
  6357. rm -rf conftest*
  6358. ;;
  6359. mips64*-*linux*)
  6360. # Find out what ABI is being produced by ac_compile, and set linker
  6361. # options accordingly.
  6362. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6363. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6364. (eval $ac_compile) 2>&5
  6365. ac_status=$?
  6366. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6367. test $ac_status = 0; }; then
  6368. emul=elf
  6369. case `/usr/bin/file conftest.$ac_objext` in
  6370. *32-bit*)
  6371. emul="${emul}32"
  6372. ;;
  6373. *64-bit*)
  6374. emul="${emul}64"
  6375. ;;
  6376. esac
  6377. case `/usr/bin/file conftest.$ac_objext` in
  6378. *MSB*)
  6379. emul="${emul}btsmip"
  6380. ;;
  6381. *LSB*)
  6382. emul="${emul}ltsmip"
  6383. ;;
  6384. esac
  6385. case `/usr/bin/file conftest.$ac_objext` in
  6386. *N32*)
  6387. emul="${emul}n32"
  6388. ;;
  6389. esac
  6390. LD="${LD-ld} -m $emul"
  6391. fi
  6392. rm -rf conftest*
  6393. ;;
  6394. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6395. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6396. # Find out what ABI is being produced by ac_compile, and set linker
  6397. # options accordingly. Note that the listed cases only cover the
  6398. # situations where additional linker options are needed (such as when
  6399. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  6400. # vice versa); the common cases where no linker options are needed do
  6401. # not appear in the list.
  6402. echo 'int i;' > conftest.$ac_ext
  6403. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6404. (eval $ac_compile) 2>&5
  6405. ac_status=$?
  6406. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6407. test $ac_status = 0; }; then
  6408. case `/usr/bin/file conftest.o` in
  6409. *32-bit*)
  6410. case $host in
  6411. x86_64-*kfreebsd*-gnu)
  6412. LD="${LD-ld} -m elf_i386_fbsd"
  6413. ;;
  6414. x86_64-*linux*)
  6415. case `/usr/bin/file conftest.o` in
  6416. *x86-64*)
  6417. LD="${LD-ld} -m elf32_x86_64"
  6418. ;;
  6419. *)
  6420. LD="${LD-ld} -m elf_i386"
  6421. ;;
  6422. esac
  6423. ;;
  6424. powerpc64le-*linux*)
  6425. LD="${LD-ld} -m elf32lppclinux"
  6426. ;;
  6427. powerpc64-*linux*)
  6428. LD="${LD-ld} -m elf32ppclinux"
  6429. ;;
  6430. s390x-*linux*)
  6431. LD="${LD-ld} -m elf_s390"
  6432. ;;
  6433. sparc64-*linux*)
  6434. LD="${LD-ld} -m elf32_sparc"
  6435. ;;
  6436. esac
  6437. ;;
  6438. *64-bit*)
  6439. case $host in
  6440. x86_64-*kfreebsd*-gnu)
  6441. LD="${LD-ld} -m elf_x86_64_fbsd"
  6442. ;;
  6443. x86_64-*linux*)
  6444. LD="${LD-ld} -m elf_x86_64"
  6445. ;;
  6446. powerpcle-*linux*|powerpc64le-*linux*)
  6447. LD="${LD-ld} -m elf64lppc"
  6448. ;;
  6449. powerpc-*linux*|powerpc64-*linux*)
  6450. LD="${LD-ld} -m elf64ppc"
  6451. ;;
  6452. s390*-*linux*|s390*-*tpf*)
  6453. LD="${LD-ld} -m elf64_s390"
  6454. ;;
  6455. sparc*-*linux*)
  6456. LD="${LD-ld} -m elf64_sparc"
  6457. ;;
  6458. esac
  6459. ;;
  6460. esac
  6461. fi
  6462. rm -rf conftest*
  6463. ;;
  6464. *-*-sco3.2v5*)
  6465. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6466. SAVE_CFLAGS=$CFLAGS
  6467. CFLAGS="$CFLAGS -belf"
  6468. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6469. printf %s "checking whether the C compiler needs -belf... " >&6; }
  6470. if test ${lt_cv_cc_needs_belf+y}
  6471. then :
  6472. printf %s "(cached) " >&6
  6473. else $as_nop
  6474. ac_ext=c
  6475. ac_cpp='$CPP $CPPFLAGS'
  6476. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6477. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6478. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6479. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6480. /* end confdefs.h. */
  6481. int
  6482. main (void)
  6483. {
  6484. ;
  6485. return 0;
  6486. }
  6487. _ACEOF
  6488. if ac_fn_c_try_link "$LINENO"
  6489. then :
  6490. lt_cv_cc_needs_belf=yes
  6491. else $as_nop
  6492. lt_cv_cc_needs_belf=no
  6493. fi
  6494. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6495. conftest$ac_exeext conftest.$ac_ext
  6496. ac_ext=c
  6497. ac_cpp='$CPP $CPPFLAGS'
  6498. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6499. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6500. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6501. fi
  6502. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6503. printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
  6504. if test yes != "$lt_cv_cc_needs_belf"; then
  6505. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6506. CFLAGS=$SAVE_CFLAGS
  6507. fi
  6508. ;;
  6509. *-*solaris*)
  6510. # Find out what ABI is being produced by ac_compile, and set linker
  6511. # options accordingly.
  6512. echo 'int i;' > conftest.$ac_ext
  6513. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6514. (eval $ac_compile) 2>&5
  6515. ac_status=$?
  6516. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6517. test $ac_status = 0; }; then
  6518. case `/usr/bin/file conftest.o` in
  6519. *64-bit*)
  6520. case $lt_cv_prog_gnu_ld in
  6521. yes*)
  6522. case $host in
  6523. i?86-*-solaris*|x86_64-*-solaris*)
  6524. LD="${LD-ld} -m elf_x86_64"
  6525. ;;
  6526. sparc*-*-solaris*)
  6527. LD="${LD-ld} -m elf64_sparc"
  6528. ;;
  6529. esac
  6530. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6531. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6532. LD=${LD-ld}_sol2
  6533. fi
  6534. ;;
  6535. *)
  6536. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6537. LD="${LD-ld} -64"
  6538. fi
  6539. ;;
  6540. esac
  6541. ;;
  6542. esac
  6543. fi
  6544. rm -rf conftest*
  6545. ;;
  6546. esac
  6547. need_locks=$enable_libtool_lock
  6548. if test -n "$ac_tool_prefix"; then
  6549. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6550. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6551. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6552. printf %s "checking for $ac_word... " >&6; }
  6553. if test ${ac_cv_prog_MANIFEST_TOOL+y}
  6554. then :
  6555. printf %s "(cached) " >&6
  6556. else $as_nop
  6557. if test -n "$MANIFEST_TOOL"; then
  6558. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6559. else
  6560. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6561. for as_dir in $PATH
  6562. do
  6563. IFS=$as_save_IFS
  6564. case $as_dir in #(((
  6565. '') as_dir=./ ;;
  6566. */) ;;
  6567. *) as_dir=$as_dir/ ;;
  6568. esac
  6569. for ac_exec_ext in '' $ac_executable_extensions; do
  6570. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6571. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6572. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6573. break 2
  6574. fi
  6575. done
  6576. done
  6577. IFS=$as_save_IFS
  6578. fi
  6579. fi
  6580. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6581. if test -n "$MANIFEST_TOOL"; then
  6582. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6583. printf "%s\n" "$MANIFEST_TOOL" >&6; }
  6584. else
  6585. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6586. printf "%s\n" "no" >&6; }
  6587. fi
  6588. fi
  6589. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6590. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6591. # Extract the first word of "mt", so it can be a program name with args.
  6592. set dummy mt; ac_word=$2
  6593. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6594. printf %s "checking for $ac_word... " >&6; }
  6595. if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
  6596. then :
  6597. printf %s "(cached) " >&6
  6598. else $as_nop
  6599. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6600. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6601. else
  6602. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6603. for as_dir in $PATH
  6604. do
  6605. IFS=$as_save_IFS
  6606. case $as_dir in #(((
  6607. '') as_dir=./ ;;
  6608. */) ;;
  6609. *) as_dir=$as_dir/ ;;
  6610. esac
  6611. for ac_exec_ext in '' $ac_executable_extensions; do
  6612. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6613. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6614. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6615. break 2
  6616. fi
  6617. done
  6618. done
  6619. IFS=$as_save_IFS
  6620. fi
  6621. fi
  6622. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6623. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6624. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6625. printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
  6626. else
  6627. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6628. printf "%s\n" "no" >&6; }
  6629. fi
  6630. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6631. MANIFEST_TOOL=":"
  6632. else
  6633. case $cross_compiling:$ac_tool_warned in
  6634. yes:)
  6635. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6636. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6637. ac_tool_warned=yes ;;
  6638. esac
  6639. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6640. fi
  6641. else
  6642. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6643. fi
  6644. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6645. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6646. printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6647. if test ${lt_cv_path_mainfest_tool+y}
  6648. then :
  6649. printf %s "(cached) " >&6
  6650. else $as_nop
  6651. lt_cv_path_mainfest_tool=no
  6652. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6653. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6654. cat conftest.err >&5
  6655. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6656. lt_cv_path_mainfest_tool=yes
  6657. fi
  6658. rm -f conftest*
  6659. fi
  6660. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6661. printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
  6662. if test yes != "$lt_cv_path_mainfest_tool"; then
  6663. MANIFEST_TOOL=:
  6664. fi
  6665. case $host_os in
  6666. rhapsody* | darwin*)
  6667. if test -n "$ac_tool_prefix"; then
  6668. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6669. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6670. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6671. printf %s "checking for $ac_word... " >&6; }
  6672. if test ${ac_cv_prog_DSYMUTIL+y}
  6673. then :
  6674. printf %s "(cached) " >&6
  6675. else $as_nop
  6676. if test -n "$DSYMUTIL"; then
  6677. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6678. else
  6679. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6680. for as_dir in $PATH
  6681. do
  6682. IFS=$as_save_IFS
  6683. case $as_dir in #(((
  6684. '') as_dir=./ ;;
  6685. */) ;;
  6686. *) as_dir=$as_dir/ ;;
  6687. esac
  6688. for ac_exec_ext in '' $ac_executable_extensions; do
  6689. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6690. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6691. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6692. break 2
  6693. fi
  6694. done
  6695. done
  6696. IFS=$as_save_IFS
  6697. fi
  6698. fi
  6699. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6700. if test -n "$DSYMUTIL"; then
  6701. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6702. printf "%s\n" "$DSYMUTIL" >&6; }
  6703. else
  6704. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6705. printf "%s\n" "no" >&6; }
  6706. fi
  6707. fi
  6708. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6709. ac_ct_DSYMUTIL=$DSYMUTIL
  6710. # Extract the first word of "dsymutil", so it can be a program name with args.
  6711. set dummy dsymutil; ac_word=$2
  6712. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6713. printf %s "checking for $ac_word... " >&6; }
  6714. if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
  6715. then :
  6716. printf %s "(cached) " >&6
  6717. else $as_nop
  6718. if test -n "$ac_ct_DSYMUTIL"; then
  6719. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6720. else
  6721. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6722. for as_dir in $PATH
  6723. do
  6724. IFS=$as_save_IFS
  6725. case $as_dir in #(((
  6726. '') as_dir=./ ;;
  6727. */) ;;
  6728. *) as_dir=$as_dir/ ;;
  6729. esac
  6730. for ac_exec_ext in '' $ac_executable_extensions; do
  6731. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6732. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6733. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6734. break 2
  6735. fi
  6736. done
  6737. done
  6738. IFS=$as_save_IFS
  6739. fi
  6740. fi
  6741. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6742. if test -n "$ac_ct_DSYMUTIL"; then
  6743. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6744. printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
  6745. else
  6746. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6747. printf "%s\n" "no" >&6; }
  6748. fi
  6749. if test "x$ac_ct_DSYMUTIL" = x; then
  6750. DSYMUTIL=":"
  6751. else
  6752. case $cross_compiling:$ac_tool_warned in
  6753. yes:)
  6754. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6755. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6756. ac_tool_warned=yes ;;
  6757. esac
  6758. DSYMUTIL=$ac_ct_DSYMUTIL
  6759. fi
  6760. else
  6761. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6762. fi
  6763. if test -n "$ac_tool_prefix"; then
  6764. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6765. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6766. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6767. printf %s "checking for $ac_word... " >&6; }
  6768. if test ${ac_cv_prog_NMEDIT+y}
  6769. then :
  6770. printf %s "(cached) " >&6
  6771. else $as_nop
  6772. if test -n "$NMEDIT"; then
  6773. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6774. else
  6775. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6776. for as_dir in $PATH
  6777. do
  6778. IFS=$as_save_IFS
  6779. case $as_dir in #(((
  6780. '') as_dir=./ ;;
  6781. */) ;;
  6782. *) as_dir=$as_dir/ ;;
  6783. esac
  6784. for ac_exec_ext in '' $ac_executable_extensions; do
  6785. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6786. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6787. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6788. break 2
  6789. fi
  6790. done
  6791. done
  6792. IFS=$as_save_IFS
  6793. fi
  6794. fi
  6795. NMEDIT=$ac_cv_prog_NMEDIT
  6796. if test -n "$NMEDIT"; then
  6797. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6798. printf "%s\n" "$NMEDIT" >&6; }
  6799. else
  6800. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6801. printf "%s\n" "no" >&6; }
  6802. fi
  6803. fi
  6804. if test -z "$ac_cv_prog_NMEDIT"; then
  6805. ac_ct_NMEDIT=$NMEDIT
  6806. # Extract the first word of "nmedit", so it can be a program name with args.
  6807. set dummy nmedit; ac_word=$2
  6808. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6809. printf %s "checking for $ac_word... " >&6; }
  6810. if test ${ac_cv_prog_ac_ct_NMEDIT+y}
  6811. then :
  6812. printf %s "(cached) " >&6
  6813. else $as_nop
  6814. if test -n "$ac_ct_NMEDIT"; then
  6815. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6816. else
  6817. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6818. for as_dir in $PATH
  6819. do
  6820. IFS=$as_save_IFS
  6821. case $as_dir in #(((
  6822. '') as_dir=./ ;;
  6823. */) ;;
  6824. *) as_dir=$as_dir/ ;;
  6825. esac
  6826. for ac_exec_ext in '' $ac_executable_extensions; do
  6827. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6828. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6829. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6830. break 2
  6831. fi
  6832. done
  6833. done
  6834. IFS=$as_save_IFS
  6835. fi
  6836. fi
  6837. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6838. if test -n "$ac_ct_NMEDIT"; then
  6839. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6840. printf "%s\n" "$ac_ct_NMEDIT" >&6; }
  6841. else
  6842. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6843. printf "%s\n" "no" >&6; }
  6844. fi
  6845. if test "x$ac_ct_NMEDIT" = x; then
  6846. NMEDIT=":"
  6847. else
  6848. case $cross_compiling:$ac_tool_warned in
  6849. yes:)
  6850. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6851. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6852. ac_tool_warned=yes ;;
  6853. esac
  6854. NMEDIT=$ac_ct_NMEDIT
  6855. fi
  6856. else
  6857. NMEDIT="$ac_cv_prog_NMEDIT"
  6858. fi
  6859. if test -n "$ac_tool_prefix"; then
  6860. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6861. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6862. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6863. printf %s "checking for $ac_word... " >&6; }
  6864. if test ${ac_cv_prog_LIPO+y}
  6865. then :
  6866. printf %s "(cached) " >&6
  6867. else $as_nop
  6868. if test -n "$LIPO"; then
  6869. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6870. else
  6871. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6872. for as_dir in $PATH
  6873. do
  6874. IFS=$as_save_IFS
  6875. case $as_dir in #(((
  6876. '') as_dir=./ ;;
  6877. */) ;;
  6878. *) as_dir=$as_dir/ ;;
  6879. esac
  6880. for ac_exec_ext in '' $ac_executable_extensions; do
  6881. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6882. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6883. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6884. break 2
  6885. fi
  6886. done
  6887. done
  6888. IFS=$as_save_IFS
  6889. fi
  6890. fi
  6891. LIPO=$ac_cv_prog_LIPO
  6892. if test -n "$LIPO"; then
  6893. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6894. printf "%s\n" "$LIPO" >&6; }
  6895. else
  6896. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6897. printf "%s\n" "no" >&6; }
  6898. fi
  6899. fi
  6900. if test -z "$ac_cv_prog_LIPO"; then
  6901. ac_ct_LIPO=$LIPO
  6902. # Extract the first word of "lipo", so it can be a program name with args.
  6903. set dummy lipo; ac_word=$2
  6904. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6905. printf %s "checking for $ac_word... " >&6; }
  6906. if test ${ac_cv_prog_ac_ct_LIPO+y}
  6907. then :
  6908. printf %s "(cached) " >&6
  6909. else $as_nop
  6910. if test -n "$ac_ct_LIPO"; then
  6911. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6912. else
  6913. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6914. for as_dir in $PATH
  6915. do
  6916. IFS=$as_save_IFS
  6917. case $as_dir in #(((
  6918. '') as_dir=./ ;;
  6919. */) ;;
  6920. *) as_dir=$as_dir/ ;;
  6921. esac
  6922. for ac_exec_ext in '' $ac_executable_extensions; do
  6923. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6924. ac_cv_prog_ac_ct_LIPO="lipo"
  6925. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6926. break 2
  6927. fi
  6928. done
  6929. done
  6930. IFS=$as_save_IFS
  6931. fi
  6932. fi
  6933. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6934. if test -n "$ac_ct_LIPO"; then
  6935. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6936. printf "%s\n" "$ac_ct_LIPO" >&6; }
  6937. else
  6938. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6939. printf "%s\n" "no" >&6; }
  6940. fi
  6941. if test "x$ac_ct_LIPO" = x; then
  6942. LIPO=":"
  6943. else
  6944. case $cross_compiling:$ac_tool_warned in
  6945. yes:)
  6946. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6947. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6948. ac_tool_warned=yes ;;
  6949. esac
  6950. LIPO=$ac_ct_LIPO
  6951. fi
  6952. else
  6953. LIPO="$ac_cv_prog_LIPO"
  6954. fi
  6955. if test -n "$ac_tool_prefix"; then
  6956. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6957. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6958. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6959. printf %s "checking for $ac_word... " >&6; }
  6960. if test ${ac_cv_prog_OTOOL+y}
  6961. then :
  6962. printf %s "(cached) " >&6
  6963. else $as_nop
  6964. if test -n "$OTOOL"; then
  6965. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6966. else
  6967. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6968. for as_dir in $PATH
  6969. do
  6970. IFS=$as_save_IFS
  6971. case $as_dir in #(((
  6972. '') as_dir=./ ;;
  6973. */) ;;
  6974. *) as_dir=$as_dir/ ;;
  6975. esac
  6976. for ac_exec_ext in '' $ac_executable_extensions; do
  6977. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6978. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6979. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6980. break 2
  6981. fi
  6982. done
  6983. done
  6984. IFS=$as_save_IFS
  6985. fi
  6986. fi
  6987. OTOOL=$ac_cv_prog_OTOOL
  6988. if test -n "$OTOOL"; then
  6989. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6990. printf "%s\n" "$OTOOL" >&6; }
  6991. else
  6992. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6993. printf "%s\n" "no" >&6; }
  6994. fi
  6995. fi
  6996. if test -z "$ac_cv_prog_OTOOL"; then
  6997. ac_ct_OTOOL=$OTOOL
  6998. # Extract the first word of "otool", so it can be a program name with args.
  6999. set dummy otool; ac_word=$2
  7000. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7001. printf %s "checking for $ac_word... " >&6; }
  7002. if test ${ac_cv_prog_ac_ct_OTOOL+y}
  7003. then :
  7004. printf %s "(cached) " >&6
  7005. else $as_nop
  7006. if test -n "$ac_ct_OTOOL"; then
  7007. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7008. else
  7009. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7010. for as_dir in $PATH
  7011. do
  7012. IFS=$as_save_IFS
  7013. case $as_dir in #(((
  7014. '') as_dir=./ ;;
  7015. */) ;;
  7016. *) as_dir=$as_dir/ ;;
  7017. esac
  7018. for ac_exec_ext in '' $ac_executable_extensions; do
  7019. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7020. ac_cv_prog_ac_ct_OTOOL="otool"
  7021. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7022. break 2
  7023. fi
  7024. done
  7025. done
  7026. IFS=$as_save_IFS
  7027. fi
  7028. fi
  7029. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7030. if test -n "$ac_ct_OTOOL"; then
  7031. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7032. printf "%s\n" "$ac_ct_OTOOL" >&6; }
  7033. else
  7034. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7035. printf "%s\n" "no" >&6; }
  7036. fi
  7037. if test "x$ac_ct_OTOOL" = x; then
  7038. OTOOL=":"
  7039. else
  7040. case $cross_compiling:$ac_tool_warned in
  7041. yes:)
  7042. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7043. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7044. ac_tool_warned=yes ;;
  7045. esac
  7046. OTOOL=$ac_ct_OTOOL
  7047. fi
  7048. else
  7049. OTOOL="$ac_cv_prog_OTOOL"
  7050. fi
  7051. if test -n "$ac_tool_prefix"; then
  7052. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7053. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7054. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7055. printf %s "checking for $ac_word... " >&6; }
  7056. if test ${ac_cv_prog_OTOOL64+y}
  7057. then :
  7058. printf %s "(cached) " >&6
  7059. else $as_nop
  7060. if test -n "$OTOOL64"; then
  7061. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7062. else
  7063. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7064. for as_dir in $PATH
  7065. do
  7066. IFS=$as_save_IFS
  7067. case $as_dir in #(((
  7068. '') as_dir=./ ;;
  7069. */) ;;
  7070. *) as_dir=$as_dir/ ;;
  7071. esac
  7072. for ac_exec_ext in '' $ac_executable_extensions; do
  7073. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7074. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7075. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7076. break 2
  7077. fi
  7078. done
  7079. done
  7080. IFS=$as_save_IFS
  7081. fi
  7082. fi
  7083. OTOOL64=$ac_cv_prog_OTOOL64
  7084. if test -n "$OTOOL64"; then
  7085. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7086. printf "%s\n" "$OTOOL64" >&6; }
  7087. else
  7088. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7089. printf "%s\n" "no" >&6; }
  7090. fi
  7091. fi
  7092. if test -z "$ac_cv_prog_OTOOL64"; then
  7093. ac_ct_OTOOL64=$OTOOL64
  7094. # Extract the first word of "otool64", so it can be a program name with args.
  7095. set dummy otool64; ac_word=$2
  7096. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7097. printf %s "checking for $ac_word... " >&6; }
  7098. if test ${ac_cv_prog_ac_ct_OTOOL64+y}
  7099. then :
  7100. printf %s "(cached) " >&6
  7101. else $as_nop
  7102. if test -n "$ac_ct_OTOOL64"; then
  7103. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7104. else
  7105. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7106. for as_dir in $PATH
  7107. do
  7108. IFS=$as_save_IFS
  7109. case $as_dir in #(((
  7110. '') as_dir=./ ;;
  7111. */) ;;
  7112. *) as_dir=$as_dir/ ;;
  7113. esac
  7114. for ac_exec_ext in '' $ac_executable_extensions; do
  7115. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7116. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7117. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7118. break 2
  7119. fi
  7120. done
  7121. done
  7122. IFS=$as_save_IFS
  7123. fi
  7124. fi
  7125. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7126. if test -n "$ac_ct_OTOOL64"; then
  7127. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7128. printf "%s\n" "$ac_ct_OTOOL64" >&6; }
  7129. else
  7130. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7131. printf "%s\n" "no" >&6; }
  7132. fi
  7133. if test "x$ac_ct_OTOOL64" = x; then
  7134. OTOOL64=":"
  7135. else
  7136. case $cross_compiling:$ac_tool_warned in
  7137. yes:)
  7138. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7139. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7140. ac_tool_warned=yes ;;
  7141. esac
  7142. OTOOL64=$ac_ct_OTOOL64
  7143. fi
  7144. else
  7145. OTOOL64="$ac_cv_prog_OTOOL64"
  7146. fi
  7147. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7148. printf %s "checking for -single_module linker flag... " >&6; }
  7149. if test ${lt_cv_apple_cc_single_mod+y}
  7150. then :
  7151. printf %s "(cached) " >&6
  7152. else $as_nop
  7153. lt_cv_apple_cc_single_mod=no
  7154. if test -z "$LT_MULTI_MODULE"; then
  7155. # By default we will add the -single_module flag. You can override
  7156. # by either setting the environment variable LT_MULTI_MODULE
  7157. # non-empty at configure time, or by adding -multi_module to the
  7158. # link flags.
  7159. rm -rf libconftest.dylib*
  7160. echo "int foo(void){return 1;}" > conftest.c
  7161. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7162. -dynamiclib -Wl,-single_module conftest.c" >&5
  7163. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7164. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7165. _lt_result=$?
  7166. # If there is a non-empty error log, and "single_module"
  7167. # appears in it, assume the flag caused a linker warning
  7168. if test -s conftest.err && $GREP single_module conftest.err; then
  7169. cat conftest.err >&5
  7170. # Otherwise, if the output was created with a 0 exit code from
  7171. # the compiler, it worked.
  7172. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  7173. lt_cv_apple_cc_single_mod=yes
  7174. else
  7175. cat conftest.err >&5
  7176. fi
  7177. rm -rf libconftest.dylib*
  7178. rm -f conftest.*
  7179. fi
  7180. fi
  7181. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7182. printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
  7183. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7184. printf %s "checking for -exported_symbols_list linker flag... " >&6; }
  7185. if test ${lt_cv_ld_exported_symbols_list+y}
  7186. then :
  7187. printf %s "(cached) " >&6
  7188. else $as_nop
  7189. lt_cv_ld_exported_symbols_list=no
  7190. save_LDFLAGS=$LDFLAGS
  7191. echo "_main" > conftest.sym
  7192. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7193. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7194. /* end confdefs.h. */
  7195. int
  7196. main (void)
  7197. {
  7198. ;
  7199. return 0;
  7200. }
  7201. _ACEOF
  7202. if ac_fn_c_try_link "$LINENO"
  7203. then :
  7204. lt_cv_ld_exported_symbols_list=yes
  7205. else $as_nop
  7206. lt_cv_ld_exported_symbols_list=no
  7207. fi
  7208. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7209. conftest$ac_exeext conftest.$ac_ext
  7210. LDFLAGS=$save_LDFLAGS
  7211. fi
  7212. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7213. printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
  7214. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7215. printf %s "checking for -force_load linker flag... " >&6; }
  7216. if test ${lt_cv_ld_force_load+y}
  7217. then :
  7218. printf %s "(cached) " >&6
  7219. else $as_nop
  7220. lt_cv_ld_force_load=no
  7221. cat > conftest.c << _LT_EOF
  7222. int forced_loaded() { return 2;}
  7223. _LT_EOF
  7224. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7225. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7226. echo "$AR cru libconftest.a conftest.o" >&5
  7227. $AR cru libconftest.a conftest.o 2>&5
  7228. echo "$RANLIB libconftest.a" >&5
  7229. $RANLIB libconftest.a 2>&5
  7230. cat > conftest.c << _LT_EOF
  7231. int main() { return 0;}
  7232. _LT_EOF
  7233. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7234. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7235. _lt_result=$?
  7236. if test -s conftest.err && $GREP force_load conftest.err; then
  7237. cat conftest.err >&5
  7238. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  7239. lt_cv_ld_force_load=yes
  7240. else
  7241. cat conftest.err >&5
  7242. fi
  7243. rm -f conftest.err libconftest.a conftest conftest.c
  7244. rm -rf conftest.dSYM
  7245. fi
  7246. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7247. printf "%s\n" "$lt_cv_ld_force_load" >&6; }
  7248. case $host_os in
  7249. rhapsody* | darwin1.[012])
  7250. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  7251. darwin1.*)
  7252. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7253. darwin*)
  7254. case $MACOSX_DEPLOYMENT_TARGET,$host in
  7255. 10.[012],*|,*powerpc*-darwin[5-8]*)
  7256. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7257. *)
  7258. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7259. esac
  7260. ;;
  7261. esac
  7262. if test yes = "$lt_cv_apple_cc_single_mod"; then
  7263. _lt_dar_single_mod='$single_module'
  7264. fi
  7265. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  7266. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  7267. else
  7268. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  7269. fi
  7270. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  7271. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7272. else
  7273. _lt_dsymutil=
  7274. fi
  7275. ;;
  7276. esac
  7277. # func_munge_path_list VARIABLE PATH
  7278. # -----------------------------------
  7279. # VARIABLE is name of variable containing _space_ separated list of
  7280. # directories to be munged by the contents of PATH, which is string
  7281. # having a format:
  7282. # "DIR[:DIR]:"
  7283. # string "DIR[ DIR]" will be prepended to VARIABLE
  7284. # ":DIR[:DIR]"
  7285. # string "DIR[ DIR]" will be appended to VARIABLE
  7286. # "DIRP[:DIRP]::[DIRA:]DIRA"
  7287. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  7288. # "DIRA[ DIRA]" will be appended to VARIABLE
  7289. # "DIR[:DIR]"
  7290. # VARIABLE will be replaced by "DIR[ DIR]"
  7291. func_munge_path_list ()
  7292. {
  7293. case x$2 in
  7294. x)
  7295. ;;
  7296. *:)
  7297. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  7298. ;;
  7299. x:*)
  7300. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  7301. ;;
  7302. *::*)
  7303. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  7304. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  7305. ;;
  7306. *)
  7307. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  7308. ;;
  7309. esac
  7310. }
  7311. ac_header= ac_cache=
  7312. for ac_item in $ac_header_c_list
  7313. do
  7314. if test $ac_cache; then
  7315. ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
  7316. if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
  7317. printf "%s\n" "#define $ac_item 1" >> confdefs.h
  7318. fi
  7319. ac_header= ac_cache=
  7320. elif test $ac_header; then
  7321. ac_cache=$ac_item
  7322. else
  7323. ac_header=$ac_item
  7324. fi
  7325. done
  7326. if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
  7327. then :
  7328. printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
  7329. fi
  7330. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7331. "
  7332. if test "x$ac_cv_header_dlfcn_h" = xyes
  7333. then :
  7334. printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
  7335. fi
  7336. # Set options
  7337. enable_win32_dll=yes
  7338. case $host in
  7339. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  7340. if test -n "$ac_tool_prefix"; then
  7341. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  7342. set dummy ${ac_tool_prefix}as; ac_word=$2
  7343. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7344. printf %s "checking for $ac_word... " >&6; }
  7345. if test ${ac_cv_prog_AS+y}
  7346. then :
  7347. printf %s "(cached) " >&6
  7348. else $as_nop
  7349. if test -n "$AS"; then
  7350. ac_cv_prog_AS="$AS" # Let the user override the test.
  7351. else
  7352. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7353. for as_dir in $PATH
  7354. do
  7355. IFS=$as_save_IFS
  7356. case $as_dir in #(((
  7357. '') as_dir=./ ;;
  7358. */) ;;
  7359. *) as_dir=$as_dir/ ;;
  7360. esac
  7361. for ac_exec_ext in '' $ac_executable_extensions; do
  7362. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7363. ac_cv_prog_AS="${ac_tool_prefix}as"
  7364. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7365. break 2
  7366. fi
  7367. done
  7368. done
  7369. IFS=$as_save_IFS
  7370. fi
  7371. fi
  7372. AS=$ac_cv_prog_AS
  7373. if test -n "$AS"; then
  7374. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  7375. printf "%s\n" "$AS" >&6; }
  7376. else
  7377. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7378. printf "%s\n" "no" >&6; }
  7379. fi
  7380. fi
  7381. if test -z "$ac_cv_prog_AS"; then
  7382. ac_ct_AS=$AS
  7383. # Extract the first word of "as", so it can be a program name with args.
  7384. set dummy as; ac_word=$2
  7385. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7386. printf %s "checking for $ac_word... " >&6; }
  7387. if test ${ac_cv_prog_ac_ct_AS+y}
  7388. then :
  7389. printf %s "(cached) " >&6
  7390. else $as_nop
  7391. if test -n "$ac_ct_AS"; then
  7392. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  7393. else
  7394. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7395. for as_dir in $PATH
  7396. do
  7397. IFS=$as_save_IFS
  7398. case $as_dir in #(((
  7399. '') as_dir=./ ;;
  7400. */) ;;
  7401. *) as_dir=$as_dir/ ;;
  7402. esac
  7403. for ac_exec_ext in '' $ac_executable_extensions; do
  7404. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7405. ac_cv_prog_ac_ct_AS="as"
  7406. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7407. break 2
  7408. fi
  7409. done
  7410. done
  7411. IFS=$as_save_IFS
  7412. fi
  7413. fi
  7414. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  7415. if test -n "$ac_ct_AS"; then
  7416. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  7417. printf "%s\n" "$ac_ct_AS" >&6; }
  7418. else
  7419. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7420. printf "%s\n" "no" >&6; }
  7421. fi
  7422. if test "x$ac_ct_AS" = x; then
  7423. AS="false"
  7424. else
  7425. case $cross_compiling:$ac_tool_warned in
  7426. yes:)
  7427. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7428. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7429. ac_tool_warned=yes ;;
  7430. esac
  7431. AS=$ac_ct_AS
  7432. fi
  7433. else
  7434. AS="$ac_cv_prog_AS"
  7435. fi
  7436. if test -n "$ac_tool_prefix"; then
  7437. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  7438. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  7439. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7440. printf %s "checking for $ac_word... " >&6; }
  7441. if test ${ac_cv_prog_DLLTOOL+y}
  7442. then :
  7443. printf %s "(cached) " >&6
  7444. else $as_nop
  7445. if test -n "$DLLTOOL"; then
  7446. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7447. else
  7448. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7449. for as_dir in $PATH
  7450. do
  7451. IFS=$as_save_IFS
  7452. case $as_dir in #(((
  7453. '') as_dir=./ ;;
  7454. */) ;;
  7455. *) as_dir=$as_dir/ ;;
  7456. esac
  7457. for ac_exec_ext in '' $ac_executable_extensions; do
  7458. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7459. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  7460. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7461. break 2
  7462. fi
  7463. done
  7464. done
  7465. IFS=$as_save_IFS
  7466. fi
  7467. fi
  7468. DLLTOOL=$ac_cv_prog_DLLTOOL
  7469. if test -n "$DLLTOOL"; then
  7470. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7471. printf "%s\n" "$DLLTOOL" >&6; }
  7472. else
  7473. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7474. printf "%s\n" "no" >&6; }
  7475. fi
  7476. fi
  7477. if test -z "$ac_cv_prog_DLLTOOL"; then
  7478. ac_ct_DLLTOOL=$DLLTOOL
  7479. # Extract the first word of "dlltool", so it can be a program name with args.
  7480. set dummy dlltool; ac_word=$2
  7481. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7482. printf %s "checking for $ac_word... " >&6; }
  7483. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  7484. then :
  7485. printf %s "(cached) " >&6
  7486. else $as_nop
  7487. if test -n "$ac_ct_DLLTOOL"; then
  7488. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  7489. else
  7490. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7491. for as_dir in $PATH
  7492. do
  7493. IFS=$as_save_IFS
  7494. case $as_dir in #(((
  7495. '') as_dir=./ ;;
  7496. */) ;;
  7497. *) as_dir=$as_dir/ ;;
  7498. esac
  7499. for ac_exec_ext in '' $ac_executable_extensions; do
  7500. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7501. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  7502. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7503. break 2
  7504. fi
  7505. done
  7506. done
  7507. IFS=$as_save_IFS
  7508. fi
  7509. fi
  7510. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  7511. if test -n "$ac_ct_DLLTOOL"; then
  7512. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  7513. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  7514. else
  7515. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7516. printf "%s\n" "no" >&6; }
  7517. fi
  7518. if test "x$ac_ct_DLLTOOL" = x; then
  7519. DLLTOOL="false"
  7520. else
  7521. case $cross_compiling:$ac_tool_warned in
  7522. yes:)
  7523. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7524. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7525. ac_tool_warned=yes ;;
  7526. esac
  7527. DLLTOOL=$ac_ct_DLLTOOL
  7528. fi
  7529. else
  7530. DLLTOOL="$ac_cv_prog_DLLTOOL"
  7531. fi
  7532. if test -n "$ac_tool_prefix"; then
  7533. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  7534. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  7535. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7536. printf %s "checking for $ac_word... " >&6; }
  7537. if test ${ac_cv_prog_OBJDUMP+y}
  7538. then :
  7539. printf %s "(cached) " >&6
  7540. else $as_nop
  7541. if test -n "$OBJDUMP"; then
  7542. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  7543. else
  7544. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7545. for as_dir in $PATH
  7546. do
  7547. IFS=$as_save_IFS
  7548. case $as_dir in #(((
  7549. '') as_dir=./ ;;
  7550. */) ;;
  7551. *) as_dir=$as_dir/ ;;
  7552. esac
  7553. for ac_exec_ext in '' $ac_executable_extensions; do
  7554. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7555. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  7556. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7557. break 2
  7558. fi
  7559. done
  7560. done
  7561. IFS=$as_save_IFS
  7562. fi
  7563. fi
  7564. OBJDUMP=$ac_cv_prog_OBJDUMP
  7565. if test -n "$OBJDUMP"; then
  7566. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  7567. printf "%s\n" "$OBJDUMP" >&6; }
  7568. else
  7569. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7570. printf "%s\n" "no" >&6; }
  7571. fi
  7572. fi
  7573. if test -z "$ac_cv_prog_OBJDUMP"; then
  7574. ac_ct_OBJDUMP=$OBJDUMP
  7575. # Extract the first word of "objdump", so it can be a program name with args.
  7576. set dummy objdump; ac_word=$2
  7577. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7578. printf %s "checking for $ac_word... " >&6; }
  7579. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  7580. then :
  7581. printf %s "(cached) " >&6
  7582. else $as_nop
  7583. if test -n "$ac_ct_OBJDUMP"; then
  7584. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  7585. else
  7586. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7587. for as_dir in $PATH
  7588. do
  7589. IFS=$as_save_IFS
  7590. case $as_dir in #(((
  7591. '') as_dir=./ ;;
  7592. */) ;;
  7593. *) as_dir=$as_dir/ ;;
  7594. esac
  7595. for ac_exec_ext in '' $ac_executable_extensions; do
  7596. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7597. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  7598. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7599. break 2
  7600. fi
  7601. done
  7602. done
  7603. IFS=$as_save_IFS
  7604. fi
  7605. fi
  7606. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  7607. if test -n "$ac_ct_OBJDUMP"; then
  7608. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  7609. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  7610. else
  7611. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7612. printf "%s\n" "no" >&6; }
  7613. fi
  7614. if test "x$ac_ct_OBJDUMP" = x; then
  7615. OBJDUMP="false"
  7616. else
  7617. case $cross_compiling:$ac_tool_warned in
  7618. yes:)
  7619. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7620. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7621. ac_tool_warned=yes ;;
  7622. esac
  7623. OBJDUMP=$ac_ct_OBJDUMP
  7624. fi
  7625. else
  7626. OBJDUMP="$ac_cv_prog_OBJDUMP"
  7627. fi
  7628. ;;
  7629. esac
  7630. test -z "$AS" && AS=as
  7631. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7632. test -z "$OBJDUMP" && OBJDUMP=objdump
  7633. enable_dlopen=no
  7634. # Check whether --enable-shared was given.
  7635. if test ${enable_shared+y}
  7636. then :
  7637. enableval=$enable_shared; p=${PACKAGE-default}
  7638. case $enableval in
  7639. yes) enable_shared=yes ;;
  7640. no) enable_shared=no ;;
  7641. *)
  7642. enable_shared=no
  7643. # Look at the argument we got. We use all the common list separators.
  7644. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7645. for pkg in $enableval; do
  7646. IFS=$lt_save_ifs
  7647. if test "X$pkg" = "X$p"; then
  7648. enable_shared=yes
  7649. fi
  7650. done
  7651. IFS=$lt_save_ifs
  7652. ;;
  7653. esac
  7654. else $as_nop
  7655. enable_shared=yes
  7656. fi
  7657. # Check whether --enable-static was given.
  7658. if test ${enable_static+y}
  7659. then :
  7660. enableval=$enable_static; p=${PACKAGE-default}
  7661. case $enableval in
  7662. yes) enable_static=yes ;;
  7663. no) enable_static=no ;;
  7664. *)
  7665. enable_static=no
  7666. # Look at the argument we got. We use all the common list separators.
  7667. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7668. for pkg in $enableval; do
  7669. IFS=$lt_save_ifs
  7670. if test "X$pkg" = "X$p"; then
  7671. enable_static=yes
  7672. fi
  7673. done
  7674. IFS=$lt_save_ifs
  7675. ;;
  7676. esac
  7677. else $as_nop
  7678. enable_static=yes
  7679. fi
  7680. # Check whether --with-pic was given.
  7681. if test ${with_pic+y}
  7682. then :
  7683. withval=$with_pic; lt_p=${PACKAGE-default}
  7684. case $withval in
  7685. yes|no) pic_mode=$withval ;;
  7686. *)
  7687. pic_mode=default
  7688. # Look at the argument we got. We use all the common list separators.
  7689. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7690. for lt_pkg in $withval; do
  7691. IFS=$lt_save_ifs
  7692. if test "X$lt_pkg" = "X$lt_p"; then
  7693. pic_mode=yes
  7694. fi
  7695. done
  7696. IFS=$lt_save_ifs
  7697. ;;
  7698. esac
  7699. else $as_nop
  7700. pic_mode=default
  7701. fi
  7702. # Check whether --enable-fast-install was given.
  7703. if test ${enable_fast_install+y}
  7704. then :
  7705. enableval=$enable_fast_install; p=${PACKAGE-default}
  7706. case $enableval in
  7707. yes) enable_fast_install=yes ;;
  7708. no) enable_fast_install=no ;;
  7709. *)
  7710. enable_fast_install=no
  7711. # Look at the argument we got. We use all the common list separators.
  7712. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7713. for pkg in $enableval; do
  7714. IFS=$lt_save_ifs
  7715. if test "X$pkg" = "X$p"; then
  7716. enable_fast_install=yes
  7717. fi
  7718. done
  7719. IFS=$lt_save_ifs
  7720. ;;
  7721. esac
  7722. else $as_nop
  7723. enable_fast_install=yes
  7724. fi
  7725. shared_archive_member_spec=
  7726. case $host,$enable_shared in
  7727. power*-*-aix[5-9]*,yes)
  7728. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  7729. printf %s "checking which variant of shared library versioning to provide... " >&6; }
  7730. # Check whether --with-aix-soname was given.
  7731. if test ${with_aix_soname+y}
  7732. then :
  7733. withval=$with_aix_soname; case $withval in
  7734. aix|svr4|both)
  7735. ;;
  7736. *)
  7737. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  7738. ;;
  7739. esac
  7740. lt_cv_with_aix_soname=$with_aix_soname
  7741. else $as_nop
  7742. if test ${lt_cv_with_aix_soname+y}
  7743. then :
  7744. printf %s "(cached) " >&6
  7745. else $as_nop
  7746. lt_cv_with_aix_soname=aix
  7747. fi
  7748. with_aix_soname=$lt_cv_with_aix_soname
  7749. fi
  7750. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  7751. printf "%s\n" "$with_aix_soname" >&6; }
  7752. if test aix != "$with_aix_soname"; then
  7753. # For the AIX way of multilib, we name the shared archive member
  7754. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  7755. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  7756. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  7757. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  7758. if test 64 = "${OBJECT_MODE-32}"; then
  7759. shared_archive_member_spec=shr_64
  7760. else
  7761. shared_archive_member_spec=shr
  7762. fi
  7763. fi
  7764. ;;
  7765. *)
  7766. with_aix_soname=aix
  7767. ;;
  7768. esac
  7769. # This can be used to rebuild libtool when needed
  7770. LIBTOOL_DEPS=$ltmain
  7771. # Always use our own libtool.
  7772. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7773. test -z "$LN_S" && LN_S="ln -s"
  7774. if test -n "${ZSH_VERSION+set}"; then
  7775. setopt NO_GLOB_SUBST
  7776. fi
  7777. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7778. printf %s "checking for objdir... " >&6; }
  7779. if test ${lt_cv_objdir+y}
  7780. then :
  7781. printf %s "(cached) " >&6
  7782. else $as_nop
  7783. rm -f .libs 2>/dev/null
  7784. mkdir .libs 2>/dev/null
  7785. if test -d .libs; then
  7786. lt_cv_objdir=.libs
  7787. else
  7788. # MS-DOS does not allow filenames that begin with a dot.
  7789. lt_cv_objdir=_libs
  7790. fi
  7791. rmdir .libs 2>/dev/null
  7792. fi
  7793. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7794. printf "%s\n" "$lt_cv_objdir" >&6; }
  7795. objdir=$lt_cv_objdir
  7796. printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
  7797. case $host_os in
  7798. aix3*)
  7799. # AIX sometimes has problems with the GCC collect2 program. For some
  7800. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7801. # vanish in a puff of smoke.
  7802. if test set != "${COLLECT_NAMES+set}"; then
  7803. COLLECT_NAMES=
  7804. export COLLECT_NAMES
  7805. fi
  7806. ;;
  7807. esac
  7808. # Global variables:
  7809. ofile=libtool
  7810. can_build_shared=yes
  7811. # All known linkers require a '.a' archive for static linking (except MSVC,
  7812. # which needs '.lib').
  7813. libext=a
  7814. with_gnu_ld=$lt_cv_prog_gnu_ld
  7815. old_CC=$CC
  7816. old_CFLAGS=$CFLAGS
  7817. # Set sane defaults for various variables
  7818. test -z "$CC" && CC=cc
  7819. test -z "$LTCC" && LTCC=$CC
  7820. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7821. test -z "$LD" && LD=ld
  7822. test -z "$ac_objext" && ac_objext=o
  7823. func_cc_basename $compiler
  7824. cc_basename=$func_cc_basename_result
  7825. # Only perform the check for file, if the check method requires it
  7826. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7827. case $deplibs_check_method in
  7828. file_magic*)
  7829. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7830. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7831. printf %s "checking for ${ac_tool_prefix}file... " >&6; }
  7832. if test ${lt_cv_path_MAGIC_CMD+y}
  7833. then :
  7834. printf %s "(cached) " >&6
  7835. else $as_nop
  7836. case $MAGIC_CMD in
  7837. [\\/*] | ?:[\\/]*)
  7838. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7839. ;;
  7840. *)
  7841. lt_save_MAGIC_CMD=$MAGIC_CMD
  7842. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7843. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7844. for ac_dir in $ac_dummy; do
  7845. IFS=$lt_save_ifs
  7846. test -z "$ac_dir" && ac_dir=.
  7847. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7848. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7849. if test -n "$file_magic_test_file"; then
  7850. case $deplibs_check_method in
  7851. "file_magic "*)
  7852. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7853. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7854. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7855. $EGREP "$file_magic_regex" > /dev/null; then
  7856. :
  7857. else
  7858. cat <<_LT_EOF 1>&2
  7859. *** Warning: the command libtool uses to detect shared libraries,
  7860. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7861. *** The result is that libtool may fail to recognize shared libraries
  7862. *** as such. This will affect the creation of libtool libraries that
  7863. *** depend on shared libraries, but programs linked with such libtool
  7864. *** libraries will work regardless of this problem. Nevertheless, you
  7865. *** may want to report the problem to your system manager and/or to
  7866. *** bug-libtool@gnu.org
  7867. _LT_EOF
  7868. fi ;;
  7869. esac
  7870. fi
  7871. break
  7872. fi
  7873. done
  7874. IFS=$lt_save_ifs
  7875. MAGIC_CMD=$lt_save_MAGIC_CMD
  7876. ;;
  7877. esac
  7878. fi
  7879. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7880. if test -n "$MAGIC_CMD"; then
  7881. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7882. printf "%s\n" "$MAGIC_CMD" >&6; }
  7883. else
  7884. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7885. printf "%s\n" "no" >&6; }
  7886. fi
  7887. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7888. if test -n "$ac_tool_prefix"; then
  7889. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7890. printf %s "checking for file... " >&6; }
  7891. if test ${lt_cv_path_MAGIC_CMD+y}
  7892. then :
  7893. printf %s "(cached) " >&6
  7894. else $as_nop
  7895. case $MAGIC_CMD in
  7896. [\\/*] | ?:[\\/]*)
  7897. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7898. ;;
  7899. *)
  7900. lt_save_MAGIC_CMD=$MAGIC_CMD
  7901. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7902. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7903. for ac_dir in $ac_dummy; do
  7904. IFS=$lt_save_ifs
  7905. test -z "$ac_dir" && ac_dir=.
  7906. if test -f "$ac_dir/file"; then
  7907. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7908. if test -n "$file_magic_test_file"; then
  7909. case $deplibs_check_method in
  7910. "file_magic "*)
  7911. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7912. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7913. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7914. $EGREP "$file_magic_regex" > /dev/null; then
  7915. :
  7916. else
  7917. cat <<_LT_EOF 1>&2
  7918. *** Warning: the command libtool uses to detect shared libraries,
  7919. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7920. *** The result is that libtool may fail to recognize shared libraries
  7921. *** as such. This will affect the creation of libtool libraries that
  7922. *** depend on shared libraries, but programs linked with such libtool
  7923. *** libraries will work regardless of this problem. Nevertheless, you
  7924. *** may want to report the problem to your system manager and/or to
  7925. *** bug-libtool@gnu.org
  7926. _LT_EOF
  7927. fi ;;
  7928. esac
  7929. fi
  7930. break
  7931. fi
  7932. done
  7933. IFS=$lt_save_ifs
  7934. MAGIC_CMD=$lt_save_MAGIC_CMD
  7935. ;;
  7936. esac
  7937. fi
  7938. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7939. if test -n "$MAGIC_CMD"; then
  7940. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7941. printf "%s\n" "$MAGIC_CMD" >&6; }
  7942. else
  7943. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7944. printf "%s\n" "no" >&6; }
  7945. fi
  7946. else
  7947. MAGIC_CMD=:
  7948. fi
  7949. fi
  7950. fi
  7951. ;;
  7952. esac
  7953. # Use C for the default configuration in the libtool script
  7954. lt_save_CC=$CC
  7955. ac_ext=c
  7956. ac_cpp='$CPP $CPPFLAGS'
  7957. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7958. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7959. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7960. # Source file extension for C test sources.
  7961. ac_ext=c
  7962. # Object file extension for compiled C test sources.
  7963. objext=o
  7964. objext=$objext
  7965. # Code to be used in simple compile tests
  7966. lt_simple_compile_test_code="int some_variable = 0;"
  7967. # Code to be used in simple link tests
  7968. lt_simple_link_test_code='int main(){return(0);}'
  7969. # If no C compiler was specified, use CC.
  7970. LTCC=${LTCC-"$CC"}
  7971. # If no C compiler flags were specified, use CFLAGS.
  7972. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7973. # Allow CC to be a program name with arguments.
  7974. compiler=$CC
  7975. # Save the default compiler, since it gets overwritten when the other
  7976. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7977. compiler_DEFAULT=$CC
  7978. # save warnings/boilerplate of simple test code
  7979. ac_outfile=conftest.$ac_objext
  7980. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7981. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7982. _lt_compiler_boilerplate=`cat conftest.err`
  7983. $RM conftest*
  7984. ac_outfile=conftest.$ac_objext
  7985. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7986. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7987. _lt_linker_boilerplate=`cat conftest.err`
  7988. $RM -r conftest*
  7989. ## CAVEAT EMPTOR:
  7990. ## There is no encapsulation within the following macros, do not change
  7991. ## the running order or otherwise move them around unless you know exactly
  7992. ## what you are doing...
  7993. if test -n "$compiler"; then
  7994. lt_prog_compiler_no_builtin_flag=
  7995. if test yes = "$GCC"; then
  7996. case $cc_basename in
  7997. nvcc*)
  7998. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7999. *)
  8000. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  8001. esac
  8002. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8003. printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  8004. if test ${lt_cv_prog_compiler_rtti_exceptions+y}
  8005. then :
  8006. printf %s "(cached) " >&6
  8007. else $as_nop
  8008. lt_cv_prog_compiler_rtti_exceptions=no
  8009. ac_outfile=conftest.$ac_objext
  8010. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8011. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  8012. # Insert the option either (1) after the last *FLAGS variable, or
  8013. # (2) before a word containing "conftest.", or (3) at the end.
  8014. # Note that $ac_compile itself does not contain backslashes and begins
  8015. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8016. # The option is referenced via a variable to avoid confusing sed.
  8017. lt_compile=`echo "$ac_compile" | $SED \
  8018. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8019. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8020. -e 's:$: $lt_compiler_flag:'`
  8021. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8022. (eval "$lt_compile" 2>conftest.err)
  8023. ac_status=$?
  8024. cat conftest.err >&5
  8025. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8026. if (exit $ac_status) && test -s "$ac_outfile"; then
  8027. # The compiler can only warn and ignore the option if not recognized
  8028. # So say no if there are warnings other than the usual output.
  8029. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8030. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8031. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8032. lt_cv_prog_compiler_rtti_exceptions=yes
  8033. fi
  8034. fi
  8035. $RM conftest*
  8036. fi
  8037. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8038. printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8039. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  8040. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8041. else
  8042. :
  8043. fi
  8044. fi
  8045. lt_prog_compiler_wl=
  8046. lt_prog_compiler_pic=
  8047. lt_prog_compiler_static=
  8048. if test yes = "$GCC"; then
  8049. lt_prog_compiler_wl='-Wl,'
  8050. lt_prog_compiler_static='-static'
  8051. case $host_os in
  8052. aix*)
  8053. # All AIX code is PIC.
  8054. if test ia64 = "$host_cpu"; then
  8055. # AIX 5 now supports IA64 processor
  8056. lt_prog_compiler_static='-Bstatic'
  8057. fi
  8058. lt_prog_compiler_pic='-fPIC'
  8059. ;;
  8060. amigaos*)
  8061. case $host_cpu in
  8062. powerpc)
  8063. # see comment about AmigaOS4 .so support
  8064. lt_prog_compiler_pic='-fPIC'
  8065. ;;
  8066. m68k)
  8067. # FIXME: we need at least 68020 code to build shared libraries, but
  8068. # adding the '-m68020' flag to GCC prevents building anything better,
  8069. # like '-m68040'.
  8070. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8071. ;;
  8072. esac
  8073. ;;
  8074. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8075. # PIC is the default for these OSes.
  8076. ;;
  8077. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8078. # This hack is so that the source file can tell whether it is being
  8079. # built for inclusion in a dll (and should export symbols for example).
  8080. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8081. # (--disable-auto-import) libraries
  8082. lt_prog_compiler_pic='-DDLL_EXPORT'
  8083. case $host_os in
  8084. os2*)
  8085. lt_prog_compiler_static='$wl-static'
  8086. ;;
  8087. esac
  8088. ;;
  8089. darwin* | rhapsody*)
  8090. # PIC is the default on this platform
  8091. # Common symbols not allowed in MH_DYLIB files
  8092. lt_prog_compiler_pic='-fno-common'
  8093. ;;
  8094. haiku*)
  8095. # PIC is the default for Haiku.
  8096. # The "-static" flag exists, but is broken.
  8097. lt_prog_compiler_static=
  8098. ;;
  8099. hpux*)
  8100. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8101. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8102. # sets the default TLS model and affects inlining.
  8103. case $host_cpu in
  8104. hppa*64*)
  8105. # +Z the default
  8106. ;;
  8107. *)
  8108. lt_prog_compiler_pic='-fPIC'
  8109. ;;
  8110. esac
  8111. ;;
  8112. interix[3-9]*)
  8113. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8114. # Instead, we relocate shared libraries at runtime.
  8115. ;;
  8116. msdosdjgpp*)
  8117. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8118. # on systems that don't support them.
  8119. lt_prog_compiler_can_build_shared=no
  8120. enable_shared=no
  8121. ;;
  8122. *nto* | *qnx*)
  8123. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8124. # it will coredump.
  8125. lt_prog_compiler_pic='-fPIC -shared'
  8126. ;;
  8127. sysv4*MP*)
  8128. if test -d /usr/nec; then
  8129. lt_prog_compiler_pic=-Kconform_pic
  8130. fi
  8131. ;;
  8132. *)
  8133. lt_prog_compiler_pic='-fPIC'
  8134. ;;
  8135. esac
  8136. case $cc_basename in
  8137. nvcc*) # Cuda Compiler Driver 2.2
  8138. lt_prog_compiler_wl='-Xlinker '
  8139. if test -n "$lt_prog_compiler_pic"; then
  8140. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8141. fi
  8142. ;;
  8143. esac
  8144. else
  8145. # PORTME Check for flag to pass linker flags through the system compiler.
  8146. case $host_os in
  8147. aix*)
  8148. lt_prog_compiler_wl='-Wl,'
  8149. if test ia64 = "$host_cpu"; then
  8150. # AIX 5 now supports IA64 processor
  8151. lt_prog_compiler_static='-Bstatic'
  8152. else
  8153. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8154. fi
  8155. ;;
  8156. darwin* | rhapsody*)
  8157. # PIC is the default on this platform
  8158. # Common symbols not allowed in MH_DYLIB files
  8159. lt_prog_compiler_pic='-fno-common'
  8160. case $cc_basename in
  8161. nagfor*)
  8162. # NAG Fortran compiler
  8163. lt_prog_compiler_wl='-Wl,-Wl,,'
  8164. lt_prog_compiler_pic='-PIC'
  8165. lt_prog_compiler_static='-Bstatic'
  8166. ;;
  8167. esac
  8168. ;;
  8169. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8170. # This hack is so that the source file can tell whether it is being
  8171. # built for inclusion in a dll (and should export symbols for example).
  8172. lt_prog_compiler_pic='-DDLL_EXPORT'
  8173. case $host_os in
  8174. os2*)
  8175. lt_prog_compiler_static='$wl-static'
  8176. ;;
  8177. esac
  8178. ;;
  8179. hpux9* | hpux10* | hpux11*)
  8180. lt_prog_compiler_wl='-Wl,'
  8181. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8182. # not for PA HP-UX.
  8183. case $host_cpu in
  8184. hppa*64*|ia64*)
  8185. # +Z the default
  8186. ;;
  8187. *)
  8188. lt_prog_compiler_pic='+Z'
  8189. ;;
  8190. esac
  8191. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8192. lt_prog_compiler_static='$wl-a ${wl}archive'
  8193. ;;
  8194. irix5* | irix6* | nonstopux*)
  8195. lt_prog_compiler_wl='-Wl,'
  8196. # PIC (with -KPIC) is the default.
  8197. lt_prog_compiler_static='-non_shared'
  8198. ;;
  8199. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8200. case $cc_basename in
  8201. # old Intel for x86_64, which still supported -KPIC.
  8202. ecc*)
  8203. lt_prog_compiler_wl='-Wl,'
  8204. lt_prog_compiler_pic='-KPIC'
  8205. lt_prog_compiler_static='-static'
  8206. ;;
  8207. # icc used to be incompatible with GCC.
  8208. # ICC 10 doesn't accept -KPIC any more.
  8209. icc* | ifort*)
  8210. lt_prog_compiler_wl='-Wl,'
  8211. lt_prog_compiler_pic='-fPIC'
  8212. lt_prog_compiler_static='-static'
  8213. ;;
  8214. # Lahey Fortran 8.1.
  8215. lf95*)
  8216. lt_prog_compiler_wl='-Wl,'
  8217. lt_prog_compiler_pic='--shared'
  8218. lt_prog_compiler_static='--static'
  8219. ;;
  8220. nagfor*)
  8221. # NAG Fortran compiler
  8222. lt_prog_compiler_wl='-Wl,-Wl,,'
  8223. lt_prog_compiler_pic='-PIC'
  8224. lt_prog_compiler_static='-Bstatic'
  8225. ;;
  8226. tcc*)
  8227. # Fabrice Bellard et al's Tiny C Compiler
  8228. lt_prog_compiler_wl='-Wl,'
  8229. lt_prog_compiler_pic='-fPIC'
  8230. lt_prog_compiler_static='-static'
  8231. ;;
  8232. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8233. # Portland Group compilers (*not* the Pentium gcc compiler,
  8234. # which looks to be a dead project)
  8235. lt_prog_compiler_wl='-Wl,'
  8236. lt_prog_compiler_pic='-fpic'
  8237. lt_prog_compiler_static='-Bstatic'
  8238. ;;
  8239. ccc*)
  8240. lt_prog_compiler_wl='-Wl,'
  8241. # All Alpha code is PIC.
  8242. lt_prog_compiler_static='-non_shared'
  8243. ;;
  8244. xl* | bgxl* | bgf* | mpixl*)
  8245. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8246. lt_prog_compiler_wl='-Wl,'
  8247. lt_prog_compiler_pic='-qpic'
  8248. lt_prog_compiler_static='-qstaticlink'
  8249. ;;
  8250. *)
  8251. case `$CC -V 2>&1 | sed 5q` in
  8252. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8253. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8254. lt_prog_compiler_pic='-KPIC'
  8255. lt_prog_compiler_static='-Bstatic'
  8256. lt_prog_compiler_wl=''
  8257. ;;
  8258. *Sun\ F* | *Sun*Fortran*)
  8259. lt_prog_compiler_pic='-KPIC'
  8260. lt_prog_compiler_static='-Bstatic'
  8261. lt_prog_compiler_wl='-Qoption ld '
  8262. ;;
  8263. *Sun\ C*)
  8264. # Sun C 5.9
  8265. lt_prog_compiler_pic='-KPIC'
  8266. lt_prog_compiler_static='-Bstatic'
  8267. lt_prog_compiler_wl='-Wl,'
  8268. ;;
  8269. *Intel*\ [CF]*Compiler*)
  8270. lt_prog_compiler_wl='-Wl,'
  8271. lt_prog_compiler_pic='-fPIC'
  8272. lt_prog_compiler_static='-static'
  8273. ;;
  8274. *Portland\ Group*)
  8275. lt_prog_compiler_wl='-Wl,'
  8276. lt_prog_compiler_pic='-fpic'
  8277. lt_prog_compiler_static='-Bstatic'
  8278. ;;
  8279. esac
  8280. ;;
  8281. esac
  8282. ;;
  8283. newsos6)
  8284. lt_prog_compiler_pic='-KPIC'
  8285. lt_prog_compiler_static='-Bstatic'
  8286. ;;
  8287. *nto* | *qnx*)
  8288. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8289. # it will coredump.
  8290. lt_prog_compiler_pic='-fPIC -shared'
  8291. ;;
  8292. osf3* | osf4* | osf5*)
  8293. lt_prog_compiler_wl='-Wl,'
  8294. # All OSF/1 code is PIC.
  8295. lt_prog_compiler_static='-non_shared'
  8296. ;;
  8297. rdos*)
  8298. lt_prog_compiler_static='-non_shared'
  8299. ;;
  8300. solaris*)
  8301. lt_prog_compiler_pic='-KPIC'
  8302. lt_prog_compiler_static='-Bstatic'
  8303. case $cc_basename in
  8304. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8305. lt_prog_compiler_wl='-Qoption ld ';;
  8306. *)
  8307. lt_prog_compiler_wl='-Wl,';;
  8308. esac
  8309. ;;
  8310. sunos4*)
  8311. lt_prog_compiler_wl='-Qoption ld '
  8312. lt_prog_compiler_pic='-PIC'
  8313. lt_prog_compiler_static='-Bstatic'
  8314. ;;
  8315. sysv4 | sysv4.2uw2* | sysv4.3*)
  8316. lt_prog_compiler_wl='-Wl,'
  8317. lt_prog_compiler_pic='-KPIC'
  8318. lt_prog_compiler_static='-Bstatic'
  8319. ;;
  8320. sysv4*MP*)
  8321. if test -d /usr/nec; then
  8322. lt_prog_compiler_pic='-Kconform_pic'
  8323. lt_prog_compiler_static='-Bstatic'
  8324. fi
  8325. ;;
  8326. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8327. lt_prog_compiler_wl='-Wl,'
  8328. lt_prog_compiler_pic='-KPIC'
  8329. lt_prog_compiler_static='-Bstatic'
  8330. ;;
  8331. unicos*)
  8332. lt_prog_compiler_wl='-Wl,'
  8333. lt_prog_compiler_can_build_shared=no
  8334. ;;
  8335. uts4*)
  8336. lt_prog_compiler_pic='-pic'
  8337. lt_prog_compiler_static='-Bstatic'
  8338. ;;
  8339. *)
  8340. lt_prog_compiler_can_build_shared=no
  8341. ;;
  8342. esac
  8343. fi
  8344. case $host_os in
  8345. # For platforms that do not support PIC, -DPIC is meaningless:
  8346. *djgpp*)
  8347. lt_prog_compiler_pic=
  8348. ;;
  8349. *)
  8350. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8351. ;;
  8352. esac
  8353. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8354. printf %s "checking for $compiler option to produce PIC... " >&6; }
  8355. if test ${lt_cv_prog_compiler_pic+y}
  8356. then :
  8357. printf %s "(cached) " >&6
  8358. else $as_nop
  8359. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8360. fi
  8361. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8362. printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
  8363. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8364. #
  8365. # Check to make sure the PIC flag actually works.
  8366. #
  8367. if test -n "$lt_prog_compiler_pic"; then
  8368. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8369. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8370. if test ${lt_cv_prog_compiler_pic_works+y}
  8371. then :
  8372. printf %s "(cached) " >&6
  8373. else $as_nop
  8374. lt_cv_prog_compiler_pic_works=no
  8375. ac_outfile=conftest.$ac_objext
  8376. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8377. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  8378. # Insert the option either (1) after the last *FLAGS variable, or
  8379. # (2) before a word containing "conftest.", or (3) at the end.
  8380. # Note that $ac_compile itself does not contain backslashes and begins
  8381. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8382. # The option is referenced via a variable to avoid confusing sed.
  8383. lt_compile=`echo "$ac_compile" | $SED \
  8384. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8385. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8386. -e 's:$: $lt_compiler_flag:'`
  8387. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8388. (eval "$lt_compile" 2>conftest.err)
  8389. ac_status=$?
  8390. cat conftest.err >&5
  8391. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8392. if (exit $ac_status) && test -s "$ac_outfile"; then
  8393. # The compiler can only warn and ignore the option if not recognized
  8394. # So say no if there are warnings other than the usual output.
  8395. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8396. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8397. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8398. lt_cv_prog_compiler_pic_works=yes
  8399. fi
  8400. fi
  8401. $RM conftest*
  8402. fi
  8403. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8404. printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
  8405. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  8406. case $lt_prog_compiler_pic in
  8407. "" | " "*) ;;
  8408. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8409. esac
  8410. else
  8411. lt_prog_compiler_pic=
  8412. lt_prog_compiler_can_build_shared=no
  8413. fi
  8414. fi
  8415. #
  8416. # Check to make sure the static flag actually works.
  8417. #
  8418. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8419. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8420. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8421. if test ${lt_cv_prog_compiler_static_works+y}
  8422. then :
  8423. printf %s "(cached) " >&6
  8424. else $as_nop
  8425. lt_cv_prog_compiler_static_works=no
  8426. save_LDFLAGS=$LDFLAGS
  8427. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8428. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8429. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8430. # The linker can only warn and ignore the option if not recognized
  8431. # So say no if there are warnings
  8432. if test -s conftest.err; then
  8433. # Append any errors to the config.log.
  8434. cat conftest.err 1>&5
  8435. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8436. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8437. if diff conftest.exp conftest.er2 >/dev/null; then
  8438. lt_cv_prog_compiler_static_works=yes
  8439. fi
  8440. else
  8441. lt_cv_prog_compiler_static_works=yes
  8442. fi
  8443. fi
  8444. $RM -r conftest*
  8445. LDFLAGS=$save_LDFLAGS
  8446. fi
  8447. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8448. printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
  8449. if test yes = "$lt_cv_prog_compiler_static_works"; then
  8450. :
  8451. else
  8452. lt_prog_compiler_static=
  8453. fi
  8454. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8455. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8456. if test ${lt_cv_prog_compiler_c_o+y}
  8457. then :
  8458. printf %s "(cached) " >&6
  8459. else $as_nop
  8460. lt_cv_prog_compiler_c_o=no
  8461. $RM -r conftest 2>/dev/null
  8462. mkdir conftest
  8463. cd conftest
  8464. mkdir out
  8465. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8466. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8467. # Insert the option either (1) after the last *FLAGS variable, or
  8468. # (2) before a word containing "conftest.", or (3) at the end.
  8469. # Note that $ac_compile itself does not contain backslashes and begins
  8470. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8471. lt_compile=`echo "$ac_compile" | $SED \
  8472. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8473. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8474. -e 's:$: $lt_compiler_flag:'`
  8475. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8476. (eval "$lt_compile" 2>out/conftest.err)
  8477. ac_status=$?
  8478. cat out/conftest.err >&5
  8479. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8480. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8481. then
  8482. # The compiler can only warn and ignore the option if not recognized
  8483. # So say no if there are warnings
  8484. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8485. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8486. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8487. lt_cv_prog_compiler_c_o=yes
  8488. fi
  8489. fi
  8490. chmod u+w . 2>&5
  8491. $RM conftest*
  8492. # SGI C++ compiler will create directory out/ii_files/ for
  8493. # template instantiation
  8494. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8495. $RM out/* && rmdir out
  8496. cd ..
  8497. $RM -r conftest
  8498. $RM conftest*
  8499. fi
  8500. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8501. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  8502. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8503. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8504. if test ${lt_cv_prog_compiler_c_o+y}
  8505. then :
  8506. printf %s "(cached) " >&6
  8507. else $as_nop
  8508. lt_cv_prog_compiler_c_o=no
  8509. $RM -r conftest 2>/dev/null
  8510. mkdir conftest
  8511. cd conftest
  8512. mkdir out
  8513. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8514. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8515. # Insert the option either (1) after the last *FLAGS variable, or
  8516. # (2) before a word containing "conftest.", or (3) at the end.
  8517. # Note that $ac_compile itself does not contain backslashes and begins
  8518. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8519. lt_compile=`echo "$ac_compile" | $SED \
  8520. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8521. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8522. -e 's:$: $lt_compiler_flag:'`
  8523. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8524. (eval "$lt_compile" 2>out/conftest.err)
  8525. ac_status=$?
  8526. cat out/conftest.err >&5
  8527. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8528. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8529. then
  8530. # The compiler can only warn and ignore the option if not recognized
  8531. # So say no if there are warnings
  8532. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8533. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8534. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8535. lt_cv_prog_compiler_c_o=yes
  8536. fi
  8537. fi
  8538. chmod u+w . 2>&5
  8539. $RM conftest*
  8540. # SGI C++ compiler will create directory out/ii_files/ for
  8541. # template instantiation
  8542. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8543. $RM out/* && rmdir out
  8544. cd ..
  8545. $RM -r conftest
  8546. $RM conftest*
  8547. fi
  8548. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8549. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  8550. hard_links=nottested
  8551. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  8552. # do not overwrite the value of need_locks provided by the user
  8553. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8554. printf %s "checking if we can lock with hard links... " >&6; }
  8555. hard_links=yes
  8556. $RM conftest*
  8557. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8558. touch conftest.a
  8559. ln conftest.a conftest.b 2>&5 || hard_links=no
  8560. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8561. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8562. printf "%s\n" "$hard_links" >&6; }
  8563. if test no = "$hard_links"; then
  8564. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  8565. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  8566. need_locks=warn
  8567. fi
  8568. else
  8569. need_locks=no
  8570. fi
  8571. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8572. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8573. runpath_var=
  8574. allow_undefined_flag=
  8575. always_export_symbols=no
  8576. archive_cmds=
  8577. archive_expsym_cmds=
  8578. compiler_needs_object=no
  8579. enable_shared_with_static_runtimes=no
  8580. export_dynamic_flag_spec=
  8581. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8582. hardcode_automatic=no
  8583. hardcode_direct=no
  8584. hardcode_direct_absolute=no
  8585. hardcode_libdir_flag_spec=
  8586. hardcode_libdir_separator=
  8587. hardcode_minus_L=no
  8588. hardcode_shlibpath_var=unsupported
  8589. inherit_rpath=no
  8590. link_all_deplibs=unknown
  8591. module_cmds=
  8592. module_expsym_cmds=
  8593. old_archive_from_new_cmds=
  8594. old_archive_from_expsyms_cmds=
  8595. thread_safe_flag_spec=
  8596. whole_archive_flag_spec=
  8597. # include_expsyms should be a list of space-separated symbols to be *always*
  8598. # included in the symbol list
  8599. include_expsyms=
  8600. # exclude_expsyms can be an extended regexp of symbols to exclude
  8601. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  8602. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  8603. # as well as any symbol that contains 'd'.
  8604. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8605. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8606. # platforms (ab)use it in PIC code, but their linkers get confused if
  8607. # the symbol is explicitly referenced. Since portable code cannot
  8608. # rely on this symbol name, it's probably fine to never include it in
  8609. # preloaded symbol tables.
  8610. # Exclude shared library initialization/finalization symbols.
  8611. extract_expsyms_cmds=
  8612. case $host_os in
  8613. cygwin* | mingw* | pw32* | cegcc*)
  8614. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8615. # When not using gcc, we currently assume that we are using
  8616. # Microsoft Visual C++.
  8617. if test yes != "$GCC"; then
  8618. with_gnu_ld=no
  8619. fi
  8620. ;;
  8621. interix*)
  8622. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8623. with_gnu_ld=yes
  8624. ;;
  8625. openbsd* | bitrig*)
  8626. with_gnu_ld=no
  8627. ;;
  8628. esac
  8629. ld_shlibs=yes
  8630. # On some targets, GNU ld is compatible enough with the native linker
  8631. # that we're better off using the native interface for both.
  8632. lt_use_gnu_ld_interface=no
  8633. if test yes = "$with_gnu_ld"; then
  8634. case $host_os in
  8635. aix*)
  8636. # The AIX port of GNU ld has always aspired to compatibility
  8637. # with the native linker. However, as the warning in the GNU ld
  8638. # block says, versions before 2.19.5* couldn't really create working
  8639. # shared libraries, regardless of the interface used.
  8640. case `$LD -v 2>&1` in
  8641. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8642. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8643. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8644. *)
  8645. lt_use_gnu_ld_interface=yes
  8646. ;;
  8647. esac
  8648. ;;
  8649. *)
  8650. lt_use_gnu_ld_interface=yes
  8651. ;;
  8652. esac
  8653. fi
  8654. if test yes = "$lt_use_gnu_ld_interface"; then
  8655. # If archive_cmds runs LD, not CC, wlarc should be empty
  8656. wlarc='$wl'
  8657. # Set some defaults for GNU ld with shared library support. These
  8658. # are reset later if shared libraries are not supported. Putting them
  8659. # here allows them to be overridden if necessary.
  8660. runpath_var=LD_RUN_PATH
  8661. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8662. export_dynamic_flag_spec='$wl--export-dynamic'
  8663. # ancient GNU ld didn't support --whole-archive et. al.
  8664. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8665. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  8666. else
  8667. whole_archive_flag_spec=
  8668. fi
  8669. supports_anon_versioning=no
  8670. case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
  8671. *GNU\ gold*) supports_anon_versioning=yes ;;
  8672. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8673. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8674. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8675. *\ 2.11.*) ;; # other 2.11 versions
  8676. *) supports_anon_versioning=yes ;;
  8677. esac
  8678. # See if GNU ld supports shared libraries.
  8679. case $host_os in
  8680. aix[3-9]*)
  8681. # On AIX/PPC, the GNU linker is very broken
  8682. if test ia64 != "$host_cpu"; then
  8683. ld_shlibs=no
  8684. cat <<_LT_EOF 1>&2
  8685. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8686. *** to be unable to reliably create shared libraries on AIX.
  8687. *** Therefore, libtool is disabling shared libraries support. If you
  8688. *** really care for shared libraries, you may want to install binutils
  8689. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8690. *** You will then need to restart the configuration process.
  8691. _LT_EOF
  8692. fi
  8693. ;;
  8694. amigaos*)
  8695. case $host_cpu in
  8696. powerpc)
  8697. # see comment about AmigaOS4 .so support
  8698. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8699. archive_expsym_cmds=''
  8700. ;;
  8701. m68k)
  8702. archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  8703. hardcode_libdir_flag_spec='-L$libdir'
  8704. hardcode_minus_L=yes
  8705. ;;
  8706. esac
  8707. ;;
  8708. beos*)
  8709. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8710. allow_undefined_flag=unsupported
  8711. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8712. # support --undefined. This deserves some investigation. FIXME
  8713. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8714. else
  8715. ld_shlibs=no
  8716. fi
  8717. ;;
  8718. cygwin* | mingw* | pw32* | cegcc*)
  8719. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8720. # as there is no search path for DLLs.
  8721. hardcode_libdir_flag_spec='-L$libdir'
  8722. export_dynamic_flag_spec='$wl--export-all-symbols'
  8723. allow_undefined_flag=unsupported
  8724. always_export_symbols=no
  8725. enable_shared_with_static_runtimes=yes
  8726. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  8727. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8728. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8729. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8730. # If the export-symbols file already is a .def file, use it as
  8731. # is; otherwise, prepend EXPORTS...
  8732. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8733. cp $export_symbols $output_objdir/$soname.def;
  8734. else
  8735. echo EXPORTS > $output_objdir/$soname.def;
  8736. cat $export_symbols >> $output_objdir/$soname.def;
  8737. fi~
  8738. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8739. else
  8740. ld_shlibs=no
  8741. fi
  8742. ;;
  8743. haiku*)
  8744. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8745. link_all_deplibs=yes
  8746. ;;
  8747. os2*)
  8748. hardcode_libdir_flag_spec='-L$libdir'
  8749. hardcode_minus_L=yes
  8750. allow_undefined_flag=unsupported
  8751. shrext_cmds=.dll
  8752. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8753. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8754. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8755. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8756. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8757. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8758. emximp -o $lib $output_objdir/$libname.def'
  8759. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8760. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8761. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8762. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8763. prefix_cmds="$SED"~
  8764. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8765. prefix_cmds="$prefix_cmds -e 1d";
  8766. fi~
  8767. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8768. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8769. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8770. emximp -o $lib $output_objdir/$libname.def'
  8771. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8772. enable_shared_with_static_runtimes=yes
  8773. file_list_spec='@'
  8774. ;;
  8775. interix[3-9]*)
  8776. hardcode_direct=no
  8777. hardcode_shlibpath_var=no
  8778. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8779. export_dynamic_flag_spec='$wl-E'
  8780. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8781. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8782. # default) and relocated if they conflict, which is a slow very memory
  8783. # consuming and fragmenting process. To avoid this, we pick a random,
  8784. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8785. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8786. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8787. archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8788. ;;
  8789. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8790. tmp_diet=no
  8791. if test linux-dietlibc = "$host_os"; then
  8792. case $cc_basename in
  8793. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8794. esac
  8795. fi
  8796. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8797. && test no = "$tmp_diet"
  8798. then
  8799. tmp_addflag=' $pic_flag'
  8800. tmp_sharedflag='-shared'
  8801. case $cc_basename,$host_cpu in
  8802. pgcc*) # Portland Group C compiler
  8803. whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  8804. tmp_addflag=' $pic_flag'
  8805. ;;
  8806. pgf77* | pgf90* | pgf95* | pgfortran*)
  8807. # Portland Group f77 and f90 compilers
  8808. whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  8809. tmp_addflag=' $pic_flag -Mnomain' ;;
  8810. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8811. tmp_addflag=' -i_dynamic' ;;
  8812. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8813. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8814. ifc* | ifort*) # Intel Fortran compiler
  8815. tmp_addflag=' -nofor_main' ;;
  8816. lf95*) # Lahey Fortran 8.1
  8817. whole_archive_flag_spec=
  8818. tmp_sharedflag='--shared' ;;
  8819. nagfor*) # NAGFOR 5.3
  8820. tmp_sharedflag='-Wl,-shared' ;;
  8821. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8822. tmp_sharedflag='-qmkshrobj'
  8823. tmp_addflag= ;;
  8824. nvcc*) # Cuda Compiler Driver 2.2
  8825. whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  8826. compiler_needs_object=yes
  8827. ;;
  8828. esac
  8829. case `$CC -V 2>&1 | sed 5q` in
  8830. *Sun\ C*) # Sun C 5.9
  8831. whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  8832. compiler_needs_object=yes
  8833. tmp_sharedflag='-G' ;;
  8834. *Sun\ F*) # Sun Fortran 8.3
  8835. tmp_sharedflag='-G' ;;
  8836. esac
  8837. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8838. if test yes = "$supports_anon_versioning"; then
  8839. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8840. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8841. echo "local: *; };" >> $output_objdir/$libname.ver~
  8842. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8843. fi
  8844. case $cc_basename in
  8845. tcc*)
  8846. export_dynamic_flag_spec='-rdynamic'
  8847. ;;
  8848. xlf* | bgf* | bgxlf* | mpixlf*)
  8849. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8850. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8851. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8852. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8853. if test yes = "$supports_anon_versioning"; then
  8854. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8855. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8856. echo "local: *; };" >> $output_objdir/$libname.ver~
  8857. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8858. fi
  8859. ;;
  8860. esac
  8861. else
  8862. ld_shlibs=no
  8863. fi
  8864. ;;
  8865. netbsd*)
  8866. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8867. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8868. wlarc=
  8869. else
  8870. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8871. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8872. fi
  8873. ;;
  8874. solaris*)
  8875. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8876. ld_shlibs=no
  8877. cat <<_LT_EOF 1>&2
  8878. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8879. *** create shared libraries on Solaris systems. Therefore, libtool
  8880. *** is disabling shared libraries support. We urge you to upgrade GNU
  8881. *** binutils to release 2.9.1 or newer. Another option is to modify
  8882. *** your PATH or compiler configuration so that the native linker is
  8883. *** used, and then restart.
  8884. _LT_EOF
  8885. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8886. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8887. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8888. else
  8889. ld_shlibs=no
  8890. fi
  8891. ;;
  8892. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8893. case `$LD -v 2>&1` in
  8894. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8895. ld_shlibs=no
  8896. cat <<_LT_EOF 1>&2
  8897. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8898. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8899. *** is disabling shared libraries support. We urge you to upgrade GNU
  8900. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8901. *** your PATH or compiler configuration so that the native linker is
  8902. *** used, and then restart.
  8903. _LT_EOF
  8904. ;;
  8905. *)
  8906. # For security reasons, it is highly recommended that you always
  8907. # use absolute paths for naming shared libraries, and exclude the
  8908. # DT_RUNPATH tag from executables and libraries. But doing so
  8909. # requires that you compile everything twice, which is a pain.
  8910. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8911. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8912. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8913. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8914. else
  8915. ld_shlibs=no
  8916. fi
  8917. ;;
  8918. esac
  8919. ;;
  8920. sunos4*)
  8921. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8922. wlarc=
  8923. hardcode_direct=yes
  8924. hardcode_shlibpath_var=no
  8925. ;;
  8926. *)
  8927. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8928. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8929. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8930. else
  8931. ld_shlibs=no
  8932. fi
  8933. ;;
  8934. esac
  8935. if test no = "$ld_shlibs"; then
  8936. runpath_var=
  8937. hardcode_libdir_flag_spec=
  8938. export_dynamic_flag_spec=
  8939. whole_archive_flag_spec=
  8940. fi
  8941. else
  8942. # PORTME fill in a description of your system's linker (not GNU ld)
  8943. case $host_os in
  8944. aix3*)
  8945. allow_undefined_flag=unsupported
  8946. always_export_symbols=yes
  8947. archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  8948. # Note: this linker hardcodes the directories in LIBPATH if there
  8949. # are no directories specified by -L.
  8950. hardcode_minus_L=yes
  8951. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8952. # Neither direct hardcoding nor static linking is supported with a
  8953. # broken collect2.
  8954. hardcode_direct=unsupported
  8955. fi
  8956. ;;
  8957. aix[4-9]*)
  8958. if test ia64 = "$host_cpu"; then
  8959. # On IA64, the linker does run time linking by default, so we don't
  8960. # have to do anything special.
  8961. aix_use_runtimelinking=no
  8962. exp_sym_flag='-Bexport'
  8963. no_entry_flag=
  8964. else
  8965. # If we're using GNU nm, then we don't want the "-C" option.
  8966. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  8967. # Without the "-l" option, or with the "-B" option, AIX nm treats
  8968. # weak defined symbols like other global defined symbols, whereas
  8969. # GNU nm marks them as "W".
  8970. # While the 'weak' keyword is ignored in the Export File, we need
  8971. # it in the Import File for the 'aix-soname' feature, so we have
  8972. # to replace the "-B" option with "-P" for AIX nm.
  8973. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8974. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  8975. else
  8976. export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  8977. fi
  8978. aix_use_runtimelinking=no
  8979. # Test if we are trying to use run time linking or normal
  8980. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8981. # have runtime linking enabled, and use it for executables.
  8982. # For shared libraries, we enable/disable runtime linking
  8983. # depending on the kind of the shared library created -
  8984. # when "with_aix_soname,aix_use_runtimelinking" is:
  8985. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  8986. # "aix,yes" lib.so shared, rtl:yes, for executables
  8987. # lib.a static archive
  8988. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  8989. # lib.a(lib.so.V) shared, rtl:no, for executables
  8990. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  8991. # lib.a(lib.so.V) shared, rtl:no
  8992. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  8993. # lib.a static archive
  8994. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8995. for ld_flag in $LDFLAGS; do
  8996. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  8997. aix_use_runtimelinking=yes
  8998. break
  8999. fi
  9000. done
  9001. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  9002. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  9003. # so we don't have lib.a shared libs to link our executables.
  9004. # We have to force runtime linking in this case.
  9005. aix_use_runtimelinking=yes
  9006. LDFLAGS="$LDFLAGS -Wl,-brtl"
  9007. fi
  9008. ;;
  9009. esac
  9010. exp_sym_flag='-bexport'
  9011. no_entry_flag='-bnoentry'
  9012. fi
  9013. # When large executables or shared objects are built, AIX ld can
  9014. # have problems creating the table of contents. If linking a library
  9015. # or program results in "error TOC overflow" add -mminimal-toc to
  9016. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9017. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9018. archive_cmds=''
  9019. hardcode_direct=yes
  9020. hardcode_direct_absolute=yes
  9021. hardcode_libdir_separator=':'
  9022. link_all_deplibs=yes
  9023. file_list_spec='$wl-f,'
  9024. case $with_aix_soname,$aix_use_runtimelinking in
  9025. aix,*) ;; # traditional, no import file
  9026. svr4,* | *,yes) # use import file
  9027. # The Import File defines what to hardcode.
  9028. hardcode_direct=no
  9029. hardcode_direct_absolute=no
  9030. ;;
  9031. esac
  9032. if test yes = "$GCC"; then
  9033. case $host_os in aix4.[012]|aix4.[012].*)
  9034. # We only want to do this on AIX 4.2 and lower, the check
  9035. # below for broken collect2 doesn't work under 4.3+
  9036. collect2name=`$CC -print-prog-name=collect2`
  9037. if test -f "$collect2name" &&
  9038. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9039. then
  9040. # We have reworked collect2
  9041. :
  9042. else
  9043. # We have old collect2
  9044. hardcode_direct=unsupported
  9045. # It fails to find uninstalled libraries when the uninstalled
  9046. # path is not listed in the libpath. Setting hardcode_minus_L
  9047. # to unsupported forces relinking
  9048. hardcode_minus_L=yes
  9049. hardcode_libdir_flag_spec='-L$libdir'
  9050. hardcode_libdir_separator=
  9051. fi
  9052. ;;
  9053. esac
  9054. shared_flag='-shared'
  9055. if test yes = "$aix_use_runtimelinking"; then
  9056. shared_flag="$shared_flag "'$wl-G'
  9057. fi
  9058. # Need to ensure runtime linking is disabled for the traditional
  9059. # shared library, or the linker may eventually find shared libraries
  9060. # /with/ Import File - we do not want to mix them.
  9061. shared_flag_aix='-shared'
  9062. shared_flag_svr4='-shared $wl-G'
  9063. else
  9064. # not using gcc
  9065. if test ia64 = "$host_cpu"; then
  9066. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9067. # chokes on -Wl,-G. The following line is correct:
  9068. shared_flag='-G'
  9069. else
  9070. if test yes = "$aix_use_runtimelinking"; then
  9071. shared_flag='$wl-G'
  9072. else
  9073. shared_flag='$wl-bM:SRE'
  9074. fi
  9075. shared_flag_aix='$wl-bM:SRE'
  9076. shared_flag_svr4='$wl-G'
  9077. fi
  9078. fi
  9079. export_dynamic_flag_spec='$wl-bexpall'
  9080. # It seems that -bexpall does not export symbols beginning with
  9081. # underscore (_), so it is better to generate a list of symbols to export.
  9082. always_export_symbols=yes
  9083. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  9084. # Warning - without using the other runtime loading flags (-brtl),
  9085. # -berok will link without error, but may produce a broken library.
  9086. allow_undefined_flag='-berok'
  9087. # Determine the default libpath from the value encoded in an
  9088. # empty executable.
  9089. if test set = "${lt_cv_aix_libpath+set}"; then
  9090. aix_libpath=$lt_cv_aix_libpath
  9091. else
  9092. if test ${lt_cv_aix_libpath_+y}
  9093. then :
  9094. printf %s "(cached) " >&6
  9095. else $as_nop
  9096. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9097. /* end confdefs.h. */
  9098. int
  9099. main (void)
  9100. {
  9101. ;
  9102. return 0;
  9103. }
  9104. _ACEOF
  9105. if ac_fn_c_try_link "$LINENO"
  9106. then :
  9107. lt_aix_libpath_sed='
  9108. /Import File Strings/,/^$/ {
  9109. /^0/ {
  9110. s/^0 *\([^ ]*\) *$/\1/
  9111. p
  9112. }
  9113. }'
  9114. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9115. # Check for a 64-bit object if we didn't find anything.
  9116. if test -z "$lt_cv_aix_libpath_"; then
  9117. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9118. fi
  9119. fi
  9120. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9121. conftest$ac_exeext conftest.$ac_ext
  9122. if test -z "$lt_cv_aix_libpath_"; then
  9123. lt_cv_aix_libpath_=/usr/lib:/lib
  9124. fi
  9125. fi
  9126. aix_libpath=$lt_cv_aix_libpath_
  9127. fi
  9128. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9129. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  9130. else
  9131. if test ia64 = "$host_cpu"; then
  9132. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  9133. allow_undefined_flag="-z nodefs"
  9134. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
  9135. else
  9136. # Determine the default libpath from the value encoded in an
  9137. # empty executable.
  9138. if test set = "${lt_cv_aix_libpath+set}"; then
  9139. aix_libpath=$lt_cv_aix_libpath
  9140. else
  9141. if test ${lt_cv_aix_libpath_+y}
  9142. then :
  9143. printf %s "(cached) " >&6
  9144. else $as_nop
  9145. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9146. /* end confdefs.h. */
  9147. int
  9148. main (void)
  9149. {
  9150. ;
  9151. return 0;
  9152. }
  9153. _ACEOF
  9154. if ac_fn_c_try_link "$LINENO"
  9155. then :
  9156. lt_aix_libpath_sed='
  9157. /Import File Strings/,/^$/ {
  9158. /^0/ {
  9159. s/^0 *\([^ ]*\) *$/\1/
  9160. p
  9161. }
  9162. }'
  9163. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9164. # Check for a 64-bit object if we didn't find anything.
  9165. if test -z "$lt_cv_aix_libpath_"; then
  9166. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9167. fi
  9168. fi
  9169. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9170. conftest$ac_exeext conftest.$ac_ext
  9171. if test -z "$lt_cv_aix_libpath_"; then
  9172. lt_cv_aix_libpath_=/usr/lib:/lib
  9173. fi
  9174. fi
  9175. aix_libpath=$lt_cv_aix_libpath_
  9176. fi
  9177. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9178. # Warning - without using the other run time loading flags,
  9179. # -berok will link without error, but may produce a broken library.
  9180. no_undefined_flag=' $wl-bernotok'
  9181. allow_undefined_flag=' $wl-berok'
  9182. if test yes = "$with_gnu_ld"; then
  9183. # We only use this code for GNU lds that support --whole-archive.
  9184. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  9185. else
  9186. # Exported symbols can be pulled into shared objects from archives
  9187. whole_archive_flag_spec='$convenience'
  9188. fi
  9189. archive_cmds_need_lc=yes
  9190. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  9191. # -brtl affects multiple linker settings, -berok does not and is overridden later
  9192. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  9193. if test svr4 != "$with_aix_soname"; then
  9194. # This is similar to how AIX traditionally builds its shared libraries.
  9195. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  9196. fi
  9197. if test aix != "$with_aix_soname"; then
  9198. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  9199. else
  9200. # used by -dlpreopen to get the symbols
  9201. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  9202. fi
  9203. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  9204. fi
  9205. fi
  9206. ;;
  9207. amigaos*)
  9208. case $host_cpu in
  9209. powerpc)
  9210. # see comment about AmigaOS4 .so support
  9211. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9212. archive_expsym_cmds=''
  9213. ;;
  9214. m68k)
  9215. archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  9216. hardcode_libdir_flag_spec='-L$libdir'
  9217. hardcode_minus_L=yes
  9218. ;;
  9219. esac
  9220. ;;
  9221. bsdi[45]*)
  9222. export_dynamic_flag_spec=-rdynamic
  9223. ;;
  9224. cygwin* | mingw* | pw32* | cegcc*)
  9225. # When not using gcc, we currently assume that we are using
  9226. # Microsoft Visual C++.
  9227. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9228. # no search path for DLLs.
  9229. case $cc_basename in
  9230. cl*)
  9231. # Native MSVC
  9232. hardcode_libdir_flag_spec=' '
  9233. allow_undefined_flag=unsupported
  9234. always_export_symbols=yes
  9235. file_list_spec='@'
  9236. # Tell ltmain to make .lib files, not .a files.
  9237. libext=lib
  9238. # Tell ltmain to make .dll files, not .so files.
  9239. shrext_cmds=.dll
  9240. # FIXME: Setting linknames here is a bad hack.
  9241. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  9242. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9243. cp "$export_symbols" "$output_objdir/$soname.def";
  9244. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  9245. else
  9246. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  9247. fi~
  9248. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9249. linknames='
  9250. # The linker will not automatically build a static lib if we build a DLL.
  9251. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9252. enable_shared_with_static_runtimes=yes
  9253. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9254. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9255. # Don't use ranlib
  9256. old_postinstall_cmds='chmod 644 $oldlib'
  9257. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9258. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9259. case $lt_outputfile in
  9260. *.exe|*.EXE) ;;
  9261. *)
  9262. lt_outputfile=$lt_outputfile.exe
  9263. lt_tool_outputfile=$lt_tool_outputfile.exe
  9264. ;;
  9265. esac~
  9266. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  9267. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9268. $RM "$lt_outputfile.manifest";
  9269. fi'
  9270. ;;
  9271. *)
  9272. # Assume MSVC wrapper
  9273. hardcode_libdir_flag_spec=' '
  9274. allow_undefined_flag=unsupported
  9275. # Tell ltmain to make .lib files, not .a files.
  9276. libext=lib
  9277. # Tell ltmain to make .dll files, not .so files.
  9278. shrext_cmds=.dll
  9279. # FIXME: Setting linknames here is a bad hack.
  9280. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9281. # The linker will automatically build a .lib file if we build a DLL.
  9282. old_archive_from_new_cmds='true'
  9283. # FIXME: Should let the user specify the lib program.
  9284. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9285. enable_shared_with_static_runtimes=yes
  9286. ;;
  9287. esac
  9288. ;;
  9289. darwin* | rhapsody*)
  9290. archive_cmds_need_lc=no
  9291. hardcode_direct=no
  9292. hardcode_automatic=yes
  9293. hardcode_shlibpath_var=unsupported
  9294. if test yes = "$lt_cv_ld_force_load"; then
  9295. whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  9296. else
  9297. whole_archive_flag_spec=''
  9298. fi
  9299. link_all_deplibs=yes
  9300. allow_undefined_flag=$_lt_dar_allow_undefined
  9301. case $cc_basename in
  9302. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  9303. *) _lt_dar_can_shared=$GCC ;;
  9304. esac
  9305. if test yes = "$_lt_dar_can_shared"; then
  9306. output_verbose_link_cmd=func_echo_all
  9307. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  9308. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  9309. archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
  9310. module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
  9311. else
  9312. ld_shlibs=no
  9313. fi
  9314. ;;
  9315. dgux*)
  9316. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9317. hardcode_libdir_flag_spec='-L$libdir'
  9318. hardcode_shlibpath_var=no
  9319. ;;
  9320. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9321. # support. Future versions do this automatically, but an explicit c++rt0.o
  9322. # does not break anything, and helps significantly (at the cost of a little
  9323. # extra space).
  9324. freebsd2.2*)
  9325. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9326. hardcode_libdir_flag_spec='-R$libdir'
  9327. hardcode_direct=yes
  9328. hardcode_shlibpath_var=no
  9329. ;;
  9330. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9331. freebsd2.*)
  9332. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9333. hardcode_direct=yes
  9334. hardcode_minus_L=yes
  9335. hardcode_shlibpath_var=no
  9336. ;;
  9337. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9338. freebsd* | dragonfly* | midnightbsd*)
  9339. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9340. hardcode_libdir_flag_spec='-R$libdir'
  9341. hardcode_direct=yes
  9342. hardcode_shlibpath_var=no
  9343. ;;
  9344. hpux9*)
  9345. if test yes = "$GCC"; then
  9346. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  9347. else
  9348. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  9349. fi
  9350. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9351. hardcode_libdir_separator=:
  9352. hardcode_direct=yes
  9353. # hardcode_minus_L: Not really in the search PATH,
  9354. # but as the default location of the library.
  9355. hardcode_minus_L=yes
  9356. export_dynamic_flag_spec='$wl-E'
  9357. ;;
  9358. hpux10*)
  9359. if test yes,no = "$GCC,$with_gnu_ld"; then
  9360. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9361. else
  9362. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9363. fi
  9364. if test no = "$with_gnu_ld"; then
  9365. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9366. hardcode_libdir_separator=:
  9367. hardcode_direct=yes
  9368. hardcode_direct_absolute=yes
  9369. export_dynamic_flag_spec='$wl-E'
  9370. # hardcode_minus_L: Not really in the search PATH,
  9371. # but as the default location of the library.
  9372. hardcode_minus_L=yes
  9373. fi
  9374. ;;
  9375. hpux11*)
  9376. if test yes,no = "$GCC,$with_gnu_ld"; then
  9377. case $host_cpu in
  9378. hppa*64*)
  9379. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9380. ;;
  9381. ia64*)
  9382. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9383. ;;
  9384. *)
  9385. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9386. ;;
  9387. esac
  9388. else
  9389. case $host_cpu in
  9390. hppa*64*)
  9391. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9392. ;;
  9393. ia64*)
  9394. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9395. ;;
  9396. *)
  9397. # Older versions of the 11.00 compiler do not understand -b yet
  9398. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9399. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9400. printf %s "checking if $CC understands -b... " >&6; }
  9401. if test ${lt_cv_prog_compiler__b+y}
  9402. then :
  9403. printf %s "(cached) " >&6
  9404. else $as_nop
  9405. lt_cv_prog_compiler__b=no
  9406. save_LDFLAGS=$LDFLAGS
  9407. LDFLAGS="$LDFLAGS -b"
  9408. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9409. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9410. # The linker can only warn and ignore the option if not recognized
  9411. # So say no if there are warnings
  9412. if test -s conftest.err; then
  9413. # Append any errors to the config.log.
  9414. cat conftest.err 1>&5
  9415. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9416. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9417. if diff conftest.exp conftest.er2 >/dev/null; then
  9418. lt_cv_prog_compiler__b=yes
  9419. fi
  9420. else
  9421. lt_cv_prog_compiler__b=yes
  9422. fi
  9423. fi
  9424. $RM -r conftest*
  9425. LDFLAGS=$save_LDFLAGS
  9426. fi
  9427. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9428. printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
  9429. if test yes = "$lt_cv_prog_compiler__b"; then
  9430. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9431. else
  9432. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9433. fi
  9434. ;;
  9435. esac
  9436. fi
  9437. if test no = "$with_gnu_ld"; then
  9438. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9439. hardcode_libdir_separator=:
  9440. case $host_cpu in
  9441. hppa*64*|ia64*)
  9442. hardcode_direct=no
  9443. hardcode_shlibpath_var=no
  9444. ;;
  9445. *)
  9446. hardcode_direct=yes
  9447. hardcode_direct_absolute=yes
  9448. export_dynamic_flag_spec='$wl-E'
  9449. # hardcode_minus_L: Not really in the search PATH,
  9450. # but as the default location of the library.
  9451. hardcode_minus_L=yes
  9452. ;;
  9453. esac
  9454. fi
  9455. ;;
  9456. irix5* | irix6* | nonstopux*)
  9457. if test yes = "$GCC"; then
  9458. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  9459. # Try to use the -exported_symbol ld option, if it does not
  9460. # work, assume that -exports_file does not work either and
  9461. # implicitly export all symbols.
  9462. # This should be the same for all languages, so no per-tag cache variable.
  9463. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9464. printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9465. if test ${lt_cv_irix_exported_symbol+y}
  9466. then :
  9467. printf %s "(cached) " >&6
  9468. else $as_nop
  9469. save_LDFLAGS=$LDFLAGS
  9470. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  9471. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9472. /* end confdefs.h. */
  9473. int foo (void) { return 0; }
  9474. _ACEOF
  9475. if ac_fn_c_try_link "$LINENO"
  9476. then :
  9477. lt_cv_irix_exported_symbol=yes
  9478. else $as_nop
  9479. lt_cv_irix_exported_symbol=no
  9480. fi
  9481. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9482. conftest$ac_exeext conftest.$ac_ext
  9483. LDFLAGS=$save_LDFLAGS
  9484. fi
  9485. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9486. printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
  9487. if test yes = "$lt_cv_irix_exported_symbol"; then
  9488. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
  9489. fi
  9490. else
  9491. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  9492. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
  9493. fi
  9494. archive_cmds_need_lc='no'
  9495. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9496. hardcode_libdir_separator=:
  9497. inherit_rpath=yes
  9498. link_all_deplibs=yes
  9499. ;;
  9500. linux*)
  9501. case $cc_basename in
  9502. tcc*)
  9503. # Fabrice Bellard et al's Tiny C Compiler
  9504. ld_shlibs=yes
  9505. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9506. ;;
  9507. esac
  9508. ;;
  9509. netbsd*)
  9510. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9511. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9512. else
  9513. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9514. fi
  9515. hardcode_libdir_flag_spec='-R$libdir'
  9516. hardcode_direct=yes
  9517. hardcode_shlibpath_var=no
  9518. ;;
  9519. newsos6)
  9520. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9521. hardcode_direct=yes
  9522. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9523. hardcode_libdir_separator=:
  9524. hardcode_shlibpath_var=no
  9525. ;;
  9526. *nto* | *qnx*)
  9527. ;;
  9528. openbsd* | bitrig*)
  9529. if test -f /usr/libexec/ld.so; then
  9530. hardcode_direct=yes
  9531. hardcode_shlibpath_var=no
  9532. hardcode_direct_absolute=yes
  9533. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9534. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9535. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  9536. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9537. export_dynamic_flag_spec='$wl-E'
  9538. else
  9539. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9540. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9541. fi
  9542. else
  9543. ld_shlibs=no
  9544. fi
  9545. ;;
  9546. os2*)
  9547. hardcode_libdir_flag_spec='-L$libdir'
  9548. hardcode_minus_L=yes
  9549. allow_undefined_flag=unsupported
  9550. shrext_cmds=.dll
  9551. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9552. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9553. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9554. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9555. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9556. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9557. emximp -o $lib $output_objdir/$libname.def'
  9558. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9559. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9560. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9561. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9562. prefix_cmds="$SED"~
  9563. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9564. prefix_cmds="$prefix_cmds -e 1d";
  9565. fi~
  9566. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9567. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9568. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9569. emximp -o $lib $output_objdir/$libname.def'
  9570. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9571. enable_shared_with_static_runtimes=yes
  9572. file_list_spec='@'
  9573. ;;
  9574. osf3*)
  9575. if test yes = "$GCC"; then
  9576. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9577. archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  9578. else
  9579. allow_undefined_flag=' -expect_unresolved \*'
  9580. archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  9581. fi
  9582. archive_cmds_need_lc='no'
  9583. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9584. hardcode_libdir_separator=:
  9585. ;;
  9586. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9587. if test yes = "$GCC"; then
  9588. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9589. archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  9590. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9591. else
  9592. allow_undefined_flag=' -expect_unresolved \*'
  9593. archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  9594. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  9595. $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
  9596. # Both c and cxx compiler support -rpath directly
  9597. hardcode_libdir_flag_spec='-rpath $libdir'
  9598. fi
  9599. archive_cmds_need_lc='no'
  9600. hardcode_libdir_separator=:
  9601. ;;
  9602. solaris*)
  9603. no_undefined_flag=' -z defs'
  9604. if test yes = "$GCC"; then
  9605. wlarc='$wl'
  9606. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9607. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9608. $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9609. else
  9610. case `$CC -V 2>&1` in
  9611. *"Compilers 5.0"*)
  9612. wlarc=''
  9613. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9614. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9615. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9616. ;;
  9617. *)
  9618. wlarc='$wl'
  9619. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9620. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9621. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9622. ;;
  9623. esac
  9624. fi
  9625. hardcode_libdir_flag_spec='-R$libdir'
  9626. hardcode_shlibpath_var=no
  9627. case $host_os in
  9628. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9629. *)
  9630. # The compiler driver will combine and reorder linker options,
  9631. # but understands '-z linker_flag'. GCC discards it without '$wl',
  9632. # but is careful enough not to reorder.
  9633. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9634. if test yes = "$GCC"; then
  9635. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  9636. else
  9637. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9638. fi
  9639. ;;
  9640. esac
  9641. link_all_deplibs=yes
  9642. ;;
  9643. sunos4*)
  9644. if test sequent = "$host_vendor"; then
  9645. # Use $CC to link under sequent, because it throws in some extra .o
  9646. # files that make .init and .fini sections work.
  9647. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9648. else
  9649. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9650. fi
  9651. hardcode_libdir_flag_spec='-L$libdir'
  9652. hardcode_direct=yes
  9653. hardcode_minus_L=yes
  9654. hardcode_shlibpath_var=no
  9655. ;;
  9656. sysv4)
  9657. case $host_vendor in
  9658. sni)
  9659. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9660. hardcode_direct=yes # is this really true???
  9661. ;;
  9662. siemens)
  9663. ## LD is ld it makes a PLAMLIB
  9664. ## CC just makes a GrossModule.
  9665. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9666. reload_cmds='$CC -r -o $output$reload_objs'
  9667. hardcode_direct=no
  9668. ;;
  9669. motorola)
  9670. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9671. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9672. ;;
  9673. esac
  9674. runpath_var='LD_RUN_PATH'
  9675. hardcode_shlibpath_var=no
  9676. ;;
  9677. sysv4.3*)
  9678. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9679. hardcode_shlibpath_var=no
  9680. export_dynamic_flag_spec='-Bexport'
  9681. ;;
  9682. sysv4*MP*)
  9683. if test -d /usr/nec; then
  9684. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9685. hardcode_shlibpath_var=no
  9686. runpath_var=LD_RUN_PATH
  9687. hardcode_runpath_var=yes
  9688. ld_shlibs=yes
  9689. fi
  9690. ;;
  9691. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9692. no_undefined_flag='$wl-z,text'
  9693. archive_cmds_need_lc=no
  9694. hardcode_shlibpath_var=no
  9695. runpath_var='LD_RUN_PATH'
  9696. if test yes = "$GCC"; then
  9697. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9698. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9699. else
  9700. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9701. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9702. fi
  9703. ;;
  9704. sysv5* | sco3.2v5* | sco5v6*)
  9705. # Note: We CANNOT use -z defs as we might desire, because we do not
  9706. # link with -lc, and that would cause any symbols used from libc to
  9707. # always be unresolved, which means just about no library would
  9708. # ever link correctly. If we're not using GNU ld we use -z text
  9709. # though, which does catch some bad symbols but isn't as heavy-handed
  9710. # as -z defs.
  9711. no_undefined_flag='$wl-z,text'
  9712. allow_undefined_flag='$wl-z,nodefs'
  9713. archive_cmds_need_lc=no
  9714. hardcode_shlibpath_var=no
  9715. hardcode_libdir_flag_spec='$wl-R,$libdir'
  9716. hardcode_libdir_separator=':'
  9717. link_all_deplibs=yes
  9718. export_dynamic_flag_spec='$wl-Bexport'
  9719. runpath_var='LD_RUN_PATH'
  9720. if test yes = "$GCC"; then
  9721. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9722. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9723. else
  9724. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9725. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9726. fi
  9727. ;;
  9728. uts4*)
  9729. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9730. hardcode_libdir_flag_spec='-L$libdir'
  9731. hardcode_shlibpath_var=no
  9732. ;;
  9733. *)
  9734. ld_shlibs=no
  9735. ;;
  9736. esac
  9737. if test sni = "$host_vendor"; then
  9738. case $host in
  9739. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9740. export_dynamic_flag_spec='$wl-Blargedynsym'
  9741. ;;
  9742. esac
  9743. fi
  9744. fi
  9745. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9746. printf "%s\n" "$ld_shlibs" >&6; }
  9747. test no = "$ld_shlibs" && can_build_shared=no
  9748. with_gnu_ld=$with_gnu_ld
  9749. #
  9750. # Do we need to explicitly link libc?
  9751. #
  9752. case "x$archive_cmds_need_lc" in
  9753. x|xyes)
  9754. # Assume -lc should be added
  9755. archive_cmds_need_lc=yes
  9756. if test yes,yes = "$GCC,$enable_shared"; then
  9757. case $archive_cmds in
  9758. *'~'*)
  9759. # FIXME: we may have to deal with multi-command sequences.
  9760. ;;
  9761. '$CC '*)
  9762. # Test whether the compiler implicitly links with -lc since on some
  9763. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9764. # to ld, don't add -lc before -lgcc.
  9765. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9766. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  9767. if test ${lt_cv_archive_cmds_need_lc+y}
  9768. then :
  9769. printf %s "(cached) " >&6
  9770. else $as_nop
  9771. $RM conftest*
  9772. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9773. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9774. (eval $ac_compile) 2>&5
  9775. ac_status=$?
  9776. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9777. test $ac_status = 0; } 2>conftest.err; then
  9778. soname=conftest
  9779. lib=conftest
  9780. libobjs=conftest.$ac_objext
  9781. deplibs=
  9782. wl=$lt_prog_compiler_wl
  9783. pic_flag=$lt_prog_compiler_pic
  9784. compiler_flags=-v
  9785. linker_flags=-v
  9786. verstring=
  9787. output_objdir=.
  9788. libname=conftest
  9789. lt_save_allow_undefined_flag=$allow_undefined_flag
  9790. allow_undefined_flag=
  9791. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9792. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9793. ac_status=$?
  9794. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9795. test $ac_status = 0; }
  9796. then
  9797. lt_cv_archive_cmds_need_lc=no
  9798. else
  9799. lt_cv_archive_cmds_need_lc=yes
  9800. fi
  9801. allow_undefined_flag=$lt_save_allow_undefined_flag
  9802. else
  9803. cat conftest.err 1>&5
  9804. fi
  9805. $RM conftest*
  9806. fi
  9807. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9808. printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
  9809. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9810. ;;
  9811. esac
  9812. fi
  9813. ;;
  9814. esac
  9815. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9816. printf %s "checking dynamic linker characteristics... " >&6; }
  9817. if test yes = "$GCC"; then
  9818. case $host_os in
  9819. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9820. *) lt_awk_arg='/^libraries:/' ;;
  9821. esac
  9822. case $host_os in
  9823. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9824. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9825. esac
  9826. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9827. case $lt_search_path_spec in
  9828. *\;*)
  9829. # if the path contains ";" then we assume it to be the separator
  9830. # otherwise default to the standard path separator (i.e. ":") - it is
  9831. # assumed that no part of a normal pathname contains ";" but that should
  9832. # okay in the real world where ";" in dirpaths is itself problematic.
  9833. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9834. ;;
  9835. *)
  9836. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9837. ;;
  9838. esac
  9839. # Ok, now we have the path, separated by spaces, we can step through it
  9840. # and add multilib dir if necessary...
  9841. lt_tmp_lt_search_path_spec=
  9842. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9843. # ...but if some path component already ends with the multilib dir we assume
  9844. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9845. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9846. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9847. lt_multi_os_dir=
  9848. ;;
  9849. esac
  9850. for lt_sys_path in $lt_search_path_spec; do
  9851. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9852. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9853. elif test -n "$lt_multi_os_dir"; then
  9854. test -d "$lt_sys_path" && \
  9855. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9856. fi
  9857. done
  9858. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9859. BEGIN {RS = " "; FS = "/|\n";} {
  9860. lt_foo = "";
  9861. lt_count = 0;
  9862. for (lt_i = NF; lt_i > 0; lt_i--) {
  9863. if ($lt_i != "" && $lt_i != ".") {
  9864. if ($lt_i == "..") {
  9865. lt_count++;
  9866. } else {
  9867. if (lt_count == 0) {
  9868. lt_foo = "/" $lt_i lt_foo;
  9869. } else {
  9870. lt_count--;
  9871. }
  9872. }
  9873. }
  9874. }
  9875. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9876. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9877. }'`
  9878. # AWK program above erroneously prepends '/' to C:/dos/paths
  9879. # for these hosts.
  9880. case $host_os in
  9881. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9882. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9883. esac
  9884. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9885. else
  9886. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9887. fi
  9888. library_names_spec=
  9889. libname_spec='lib$name'
  9890. soname_spec=
  9891. shrext_cmds=.so
  9892. postinstall_cmds=
  9893. postuninstall_cmds=
  9894. finish_cmds=
  9895. finish_eval=
  9896. shlibpath_var=
  9897. shlibpath_overrides_runpath=unknown
  9898. version_type=none
  9899. dynamic_linker="$host_os ld.so"
  9900. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9901. need_lib_prefix=unknown
  9902. hardcode_into_libs=no
  9903. # when you set need_version to no, make sure it does not cause -set_version
  9904. # flags to be left without arguments
  9905. need_version=unknown
  9906. case $host_os in
  9907. aix3*)
  9908. version_type=linux # correct to gnu/linux during the next big refactor
  9909. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9910. shlibpath_var=LIBPATH
  9911. # AIX 3 has no versioning support, so we append a major version to the name.
  9912. soname_spec='$libname$release$shared_ext$major'
  9913. ;;
  9914. aix[4-9]*)
  9915. version_type=linux # correct to gnu/linux during the next big refactor
  9916. need_lib_prefix=no
  9917. need_version=no
  9918. hardcode_into_libs=yes
  9919. if test ia64 = "$host_cpu"; then
  9920. # AIX 5 supports IA64
  9921. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9922. shlibpath_var=LD_LIBRARY_PATH
  9923. else
  9924. # With GCC up to 2.95.x, collect2 would create an import file
  9925. # for dependence libraries. The import file would start with
  9926. # the line '#! .'. This would cause the generated library to
  9927. # depend on '.', always an invalid library. This was fixed in
  9928. # development snapshots of GCC prior to 3.0.
  9929. case $host_os in
  9930. aix4 | aix4.[01] | aix4.[01].*)
  9931. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9932. echo ' yes '
  9933. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9934. :
  9935. else
  9936. can_build_shared=no
  9937. fi
  9938. ;;
  9939. esac
  9940. # Using Import Files as archive members, it is possible to support
  9941. # filename-based versioning of shared library archives on AIX. While
  9942. # this would work for both with and without runtime linking, it will
  9943. # prevent static linking of such archives. So we do filename-based
  9944. # shared library versioning with .so extension only, which is used
  9945. # when both runtime linking and shared linking is enabled.
  9946. # Unfortunately, runtime linking may impact performance, so we do
  9947. # not want this to be the default eventually. Also, we use the
  9948. # versioned .so libs for executables only if there is the -brtl
  9949. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9950. # To allow for filename-based versioning support, we need to create
  9951. # libNAME.so.V as an archive file, containing:
  9952. # *) an Import File, referring to the versioned filename of the
  9953. # archive as well as the shared archive member, telling the
  9954. # bitwidth (32 or 64) of that shared object, and providing the
  9955. # list of exported symbols of that shared object, eventually
  9956. # decorated with the 'weak' keyword
  9957. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9958. # it being seen by the linker.
  9959. # At run time we better use the real file rather than another symlink,
  9960. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9961. case $with_aix_soname,$aix_use_runtimelinking in
  9962. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9963. # soname into executable. Probably we can add versioning support to
  9964. # collect2, so additional links can be useful in future.
  9965. aix,yes) # traditional libtool
  9966. dynamic_linker='AIX unversionable lib.so'
  9967. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9968. # instead of lib<name>.a to let people know that these are not
  9969. # typical AIX shared libraries.
  9970. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9971. ;;
  9972. aix,no) # traditional AIX only
  9973. dynamic_linker='AIX lib.a(lib.so.V)'
  9974. # We preserve .a as extension for shared libraries through AIX4.2
  9975. # and later when we are not doing run time linking.
  9976. library_names_spec='$libname$release.a $libname.a'
  9977. soname_spec='$libname$release$shared_ext$major'
  9978. ;;
  9979. svr4,*) # full svr4 only
  9980. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  9981. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9982. # We do not specify a path in Import Files, so LIBPATH fires.
  9983. shlibpath_overrides_runpath=yes
  9984. ;;
  9985. *,yes) # both, prefer svr4
  9986. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  9987. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9988. # unpreferred sharedlib libNAME.a needs extra handling
  9989. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  9990. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  9991. # We do not specify a path in Import Files, so LIBPATH fires.
  9992. shlibpath_overrides_runpath=yes
  9993. ;;
  9994. *,no) # both, prefer aix
  9995. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  9996. library_names_spec='$libname$release.a $libname.a'
  9997. soname_spec='$libname$release$shared_ext$major'
  9998. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  9999. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  10000. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  10001. ;;
  10002. esac
  10003. shlibpath_var=LIBPATH
  10004. fi
  10005. ;;
  10006. amigaos*)
  10007. case $host_cpu in
  10008. powerpc)
  10009. # Since July 2007 AmigaOS4 officially supports .so libraries.
  10010. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  10011. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10012. ;;
  10013. m68k)
  10014. library_names_spec='$libname.ixlibrary $libname.a'
  10015. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10016. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  10017. ;;
  10018. esac
  10019. ;;
  10020. beos*)
  10021. library_names_spec='$libname$shared_ext'
  10022. dynamic_linker="$host_os ld.so"
  10023. shlibpath_var=LIBRARY_PATH
  10024. ;;
  10025. bsdi[45]*)
  10026. version_type=linux # correct to gnu/linux during the next big refactor
  10027. need_version=no
  10028. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10029. soname_spec='$libname$release$shared_ext$major'
  10030. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10031. shlibpath_var=LD_LIBRARY_PATH
  10032. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10033. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10034. # the default ld.so.conf also contains /usr/contrib/lib and
  10035. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10036. # libtool to hard-code these into programs
  10037. ;;
  10038. cygwin* | mingw* | pw32* | cegcc*)
  10039. version_type=windows
  10040. shrext_cmds=.dll
  10041. need_version=no
  10042. need_lib_prefix=no
  10043. case $GCC,$cc_basename in
  10044. yes,*)
  10045. # gcc
  10046. library_names_spec='$libname.dll.a'
  10047. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10048. postinstall_cmds='base_file=`basename \$file`~
  10049. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10050. dldir=$destdir/`dirname \$dlpath`~
  10051. test -d \$dldir || mkdir -p \$dldir~
  10052. $install_prog $dir/$dlname \$dldir/$dlname~
  10053. chmod a+x \$dldir/$dlname~
  10054. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10055. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10056. fi'
  10057. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10058. dlpath=$dir/\$dldll~
  10059. $RM \$dlpath'
  10060. shlibpath_overrides_runpath=yes
  10061. case $host_os in
  10062. cygwin*)
  10063. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10064. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  10065. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  10066. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  10067. ;;
  10068. mingw* | cegcc*)
  10069. # MinGW DLLs use traditional 'lib' prefix
  10070. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  10071. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  10072. ;;
  10073. pw32*)
  10074. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10075. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10076. ;;
  10077. esac
  10078. dynamic_linker='Win32 ld.exe'
  10079. ;;
  10080. *,cl*)
  10081. # Native MSVC
  10082. libname_spec='$name'
  10083. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10084. library_names_spec='$libname.dll.lib'
  10085. case $build_os in
  10086. mingw*)
  10087. sys_lib_search_path_spec=
  10088. lt_save_ifs=$IFS
  10089. IFS=';'
  10090. for lt_path in $LIB
  10091. do
  10092. IFS=$lt_save_ifs
  10093. # Let DOS variable expansion print the short 8.3 style file name.
  10094. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  10095. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  10096. done
  10097. IFS=$lt_save_ifs
  10098. # Convert to MSYS style.
  10099. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  10100. ;;
  10101. cygwin*)
  10102. # Convert to unix form, then to dos form, then back to unix form
  10103. # but this time dos style (no spaces!) so that the unix form looks
  10104. # like /cygdrive/c/PROGRA~1:/cygdr...
  10105. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10106. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10107. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10108. ;;
  10109. *)
  10110. sys_lib_search_path_spec=$LIB
  10111. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10112. # It is most probably a Windows format PATH.
  10113. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10114. else
  10115. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10116. fi
  10117. # FIXME: find the short name or the path components, as spaces are
  10118. # common. (e.g. "Program Files" -> "PROGRA~1")
  10119. ;;
  10120. esac
  10121. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10122. postinstall_cmds='base_file=`basename \$file`~
  10123. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10124. dldir=$destdir/`dirname \$dlpath`~
  10125. test -d \$dldir || mkdir -p \$dldir~
  10126. $install_prog $dir/$dlname \$dldir/$dlname'
  10127. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10128. dlpath=$dir/\$dldll~
  10129. $RM \$dlpath'
  10130. shlibpath_overrides_runpath=yes
  10131. dynamic_linker='Win32 link.exe'
  10132. ;;
  10133. *)
  10134. # Assume MSVC wrapper
  10135. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  10136. dynamic_linker='Win32 ld.exe'
  10137. ;;
  10138. esac
  10139. # FIXME: first we should search . and the directory the executable is in
  10140. shlibpath_var=PATH
  10141. ;;
  10142. darwin* | rhapsody*)
  10143. dynamic_linker="$host_os dyld"
  10144. version_type=darwin
  10145. need_lib_prefix=no
  10146. need_version=no
  10147. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  10148. soname_spec='$libname$release$major$shared_ext'
  10149. shlibpath_overrides_runpath=yes
  10150. shlibpath_var=DYLD_LIBRARY_PATH
  10151. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10152. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10153. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10154. ;;
  10155. dgux*)
  10156. version_type=linux # correct to gnu/linux during the next big refactor
  10157. need_lib_prefix=no
  10158. need_version=no
  10159. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10160. soname_spec='$libname$release$shared_ext$major'
  10161. shlibpath_var=LD_LIBRARY_PATH
  10162. ;;
  10163. freebsd* | dragonfly* | midnightbsd*)
  10164. # DragonFly does not have aout. When/if they implement a new
  10165. # versioning mechanism, adjust this.
  10166. if test -x /usr/bin/objformat; then
  10167. objformat=`/usr/bin/objformat`
  10168. else
  10169. case $host_os in
  10170. freebsd[23].*) objformat=aout ;;
  10171. *) objformat=elf ;;
  10172. esac
  10173. fi
  10174. version_type=freebsd-$objformat
  10175. case $version_type in
  10176. freebsd-elf*)
  10177. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10178. soname_spec='$libname$release$shared_ext$major'
  10179. need_version=no
  10180. need_lib_prefix=no
  10181. ;;
  10182. freebsd-*)
  10183. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10184. need_version=yes
  10185. ;;
  10186. esac
  10187. shlibpath_var=LD_LIBRARY_PATH
  10188. case $host_os in
  10189. freebsd2.*)
  10190. shlibpath_overrides_runpath=yes
  10191. ;;
  10192. freebsd3.[01]* | freebsdelf3.[01]*)
  10193. shlibpath_overrides_runpath=yes
  10194. hardcode_into_libs=yes
  10195. ;;
  10196. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10197. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10198. shlibpath_overrides_runpath=no
  10199. hardcode_into_libs=yes
  10200. ;;
  10201. *) # from 4.6 on, and DragonFly
  10202. shlibpath_overrides_runpath=yes
  10203. hardcode_into_libs=yes
  10204. ;;
  10205. esac
  10206. ;;
  10207. haiku*)
  10208. version_type=linux # correct to gnu/linux during the next big refactor
  10209. need_lib_prefix=no
  10210. need_version=no
  10211. dynamic_linker="$host_os runtime_loader"
  10212. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10213. soname_spec='$libname$release$shared_ext$major'
  10214. shlibpath_var=LIBRARY_PATH
  10215. shlibpath_overrides_runpath=no
  10216. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10217. hardcode_into_libs=yes
  10218. ;;
  10219. hpux9* | hpux10* | hpux11*)
  10220. # Give a soname corresponding to the major version so that dld.sl refuses to
  10221. # link against other versions.
  10222. version_type=sunos
  10223. need_lib_prefix=no
  10224. need_version=no
  10225. case $host_cpu in
  10226. ia64*)
  10227. shrext_cmds='.so'
  10228. hardcode_into_libs=yes
  10229. dynamic_linker="$host_os dld.so"
  10230. shlibpath_var=LD_LIBRARY_PATH
  10231. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10232. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10233. soname_spec='$libname$release$shared_ext$major'
  10234. if test 32 = "$HPUX_IA64_MODE"; then
  10235. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10236. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  10237. else
  10238. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10239. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  10240. fi
  10241. ;;
  10242. hppa*64*)
  10243. shrext_cmds='.sl'
  10244. hardcode_into_libs=yes
  10245. dynamic_linker="$host_os dld.sl"
  10246. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10247. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10248. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10249. soname_spec='$libname$release$shared_ext$major'
  10250. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10251. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10252. ;;
  10253. *)
  10254. shrext_cmds='.sl'
  10255. dynamic_linker="$host_os dld.sl"
  10256. shlibpath_var=SHLIB_PATH
  10257. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10258. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10259. soname_spec='$libname$release$shared_ext$major'
  10260. ;;
  10261. esac
  10262. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10263. postinstall_cmds='chmod 555 $lib'
  10264. # or fails outright, so override atomically:
  10265. install_override_mode=555
  10266. ;;
  10267. interix[3-9]*)
  10268. version_type=linux # correct to gnu/linux during the next big refactor
  10269. need_lib_prefix=no
  10270. need_version=no
  10271. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10272. soname_spec='$libname$release$shared_ext$major'
  10273. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10274. shlibpath_var=LD_LIBRARY_PATH
  10275. shlibpath_overrides_runpath=no
  10276. hardcode_into_libs=yes
  10277. ;;
  10278. irix5* | irix6* | nonstopux*)
  10279. case $host_os in
  10280. nonstopux*) version_type=nonstopux ;;
  10281. *)
  10282. if test yes = "$lt_cv_prog_gnu_ld"; then
  10283. version_type=linux # correct to gnu/linux during the next big refactor
  10284. else
  10285. version_type=irix
  10286. fi ;;
  10287. esac
  10288. need_lib_prefix=no
  10289. need_version=no
  10290. soname_spec='$libname$release$shared_ext$major'
  10291. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  10292. case $host_os in
  10293. irix5* | nonstopux*)
  10294. libsuff= shlibsuff=
  10295. ;;
  10296. *)
  10297. case $LD in # libtool.m4 will add one of these switches to LD
  10298. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10299. libsuff= shlibsuff= libmagic=32-bit;;
  10300. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10301. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10302. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10303. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10304. *) libsuff= shlibsuff= libmagic=never-match;;
  10305. esac
  10306. ;;
  10307. esac
  10308. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10309. shlibpath_overrides_runpath=no
  10310. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  10311. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  10312. hardcode_into_libs=yes
  10313. ;;
  10314. # No shared lib support for Linux oldld, aout, or coff.
  10315. linux*oldld* | linux*aout* | linux*coff*)
  10316. dynamic_linker=no
  10317. ;;
  10318. linux*android*)
  10319. version_type=none # Android doesn't support versioned libraries.
  10320. need_lib_prefix=no
  10321. need_version=no
  10322. library_names_spec='$libname$release$shared_ext'
  10323. soname_spec='$libname$release$shared_ext'
  10324. finish_cmds=
  10325. shlibpath_var=LD_LIBRARY_PATH
  10326. shlibpath_overrides_runpath=yes
  10327. # This implies no fast_install, which is unacceptable.
  10328. # Some rework will be needed to allow for fast_install
  10329. # before this can be enabled.
  10330. hardcode_into_libs=yes
  10331. dynamic_linker='Android linker'
  10332. # Don't embed -rpath directories since the linker doesn't support them.
  10333. hardcode_libdir_flag_spec='-L$libdir'
  10334. ;;
  10335. # This must be glibc/ELF.
  10336. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10337. version_type=linux # correct to gnu/linux during the next big refactor
  10338. need_lib_prefix=no
  10339. need_version=no
  10340. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10341. soname_spec='$libname$release$shared_ext$major'
  10342. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10343. shlibpath_var=LD_LIBRARY_PATH
  10344. shlibpath_overrides_runpath=no
  10345. # Some binutils ld are patched to set DT_RUNPATH
  10346. if test ${lt_cv_shlibpath_overrides_runpath+y}
  10347. then :
  10348. printf %s "(cached) " >&6
  10349. else $as_nop
  10350. lt_cv_shlibpath_overrides_runpath=no
  10351. save_LDFLAGS=$LDFLAGS
  10352. save_libdir=$libdir
  10353. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10354. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10355. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10356. /* end confdefs.h. */
  10357. int
  10358. main (void)
  10359. {
  10360. ;
  10361. return 0;
  10362. }
  10363. _ACEOF
  10364. if ac_fn_c_try_link "$LINENO"
  10365. then :
  10366. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  10367. then :
  10368. lt_cv_shlibpath_overrides_runpath=yes
  10369. fi
  10370. fi
  10371. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10372. conftest$ac_exeext conftest.$ac_ext
  10373. LDFLAGS=$save_LDFLAGS
  10374. libdir=$save_libdir
  10375. fi
  10376. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10377. # This implies no fast_install, which is unacceptable.
  10378. # Some rework will be needed to allow for fast_install
  10379. # before this can be enabled.
  10380. hardcode_into_libs=yes
  10381. # Add ABI-specific directories to the system library path.
  10382. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  10383. # Ideally, we could use ldconfig to report *all* directores which are
  10384. # searched for libraries, however this is still not possible. Aside from not
  10385. # being certain /sbin/ldconfig is available, command
  10386. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  10387. # even though it is searched at run-time. Try to do the best guess by
  10388. # appending ld.so.conf contents (and includes) to the search path.
  10389. if test -f /etc/ld.so.conf; then
  10390. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  10391. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  10392. fi
  10393. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10394. # powerpc, because MkLinux only supported shared libraries with the
  10395. # GNU dynamic linker. Since this was broken with cross compilers,
  10396. # most powerpc-linux boxes support dynamic linking these days and
  10397. # people can always --disable-shared, the test was removed, and we
  10398. # assume the GNU/Linux dynamic linker is in use.
  10399. dynamic_linker='GNU/Linux ld.so'
  10400. ;;
  10401. netbsd*)
  10402. version_type=sunos
  10403. need_lib_prefix=no
  10404. need_version=no
  10405. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10406. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10407. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10408. dynamic_linker='NetBSD (a.out) ld.so'
  10409. else
  10410. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10411. soname_spec='$libname$release$shared_ext$major'
  10412. dynamic_linker='NetBSD ld.elf_so'
  10413. fi
  10414. shlibpath_var=LD_LIBRARY_PATH
  10415. shlibpath_overrides_runpath=yes
  10416. hardcode_into_libs=yes
  10417. ;;
  10418. newsos6)
  10419. version_type=linux # correct to gnu/linux during the next big refactor
  10420. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10421. shlibpath_var=LD_LIBRARY_PATH
  10422. shlibpath_overrides_runpath=yes
  10423. ;;
  10424. *nto* | *qnx*)
  10425. version_type=qnx
  10426. need_lib_prefix=no
  10427. need_version=no
  10428. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10429. soname_spec='$libname$release$shared_ext$major'
  10430. shlibpath_var=LD_LIBRARY_PATH
  10431. shlibpath_overrides_runpath=no
  10432. hardcode_into_libs=yes
  10433. dynamic_linker='ldqnx.so'
  10434. ;;
  10435. openbsd* | bitrig*)
  10436. version_type=sunos
  10437. sys_lib_dlsearch_path_spec=/usr/lib
  10438. need_lib_prefix=no
  10439. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10440. need_version=no
  10441. else
  10442. need_version=yes
  10443. fi
  10444. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10445. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10446. shlibpath_var=LD_LIBRARY_PATH
  10447. shlibpath_overrides_runpath=yes
  10448. ;;
  10449. os2*)
  10450. libname_spec='$name'
  10451. shrext_cmds=.dll
  10452. need_lib_prefix=no
  10453. # OS/2 can only load a DLL with a base name of 8 characters or less.
  10454. # SDL customization: removed versioning support.
  10455. # version_type=windows
  10456. # need_version=no
  10457. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  10458. # v=$($ECHO $release$versuffix | tr -d .-);
  10459. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  10460. # $ECHO $n$v`$shared_ext'
  10461. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  10462. library_names_spec='${libname}_dll.$libext'
  10463. dynamic_linker='OS/2 ld.exe'
  10464. shlibpath_var=BEGINLIBPATH
  10465. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10466. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10467. postinstall_cmds='base_file=`basename \$file`~
  10468. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  10469. dldir=$destdir/`dirname \$dlpath`~
  10470. test -d \$dldir || mkdir -p \$dldir~
  10471. $install_prog $dir/$dlname \$dldir/$dlname~
  10472. chmod a+x \$dldir/$dlname~
  10473. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10474. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10475. fi'
  10476. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  10477. dlpath=$dir/\$dldll~
  10478. $RM \$dlpath'
  10479. ;;
  10480. osf3* | osf4* | osf5*)
  10481. version_type=osf
  10482. need_lib_prefix=no
  10483. need_version=no
  10484. soname_spec='$libname$release$shared_ext$major'
  10485. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10486. shlibpath_var=LD_LIBRARY_PATH
  10487. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10488. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10489. ;;
  10490. rdos*)
  10491. dynamic_linker=no
  10492. ;;
  10493. solaris*)
  10494. version_type=linux # correct to gnu/linux during the next big refactor
  10495. need_lib_prefix=no
  10496. need_version=no
  10497. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10498. soname_spec='$libname$release$shared_ext$major'
  10499. shlibpath_var=LD_LIBRARY_PATH
  10500. shlibpath_overrides_runpath=yes
  10501. hardcode_into_libs=yes
  10502. # ldd complains unless libraries are executable
  10503. postinstall_cmds='chmod +x $lib'
  10504. ;;
  10505. sunos4*)
  10506. version_type=sunos
  10507. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10508. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10509. shlibpath_var=LD_LIBRARY_PATH
  10510. shlibpath_overrides_runpath=yes
  10511. if test yes = "$with_gnu_ld"; then
  10512. need_lib_prefix=no
  10513. fi
  10514. need_version=yes
  10515. ;;
  10516. sysv4 | sysv4.3*)
  10517. version_type=linux # correct to gnu/linux during the next big refactor
  10518. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10519. soname_spec='$libname$release$shared_ext$major'
  10520. shlibpath_var=LD_LIBRARY_PATH
  10521. case $host_vendor in
  10522. sni)
  10523. shlibpath_overrides_runpath=no
  10524. need_lib_prefix=no
  10525. runpath_var=LD_RUN_PATH
  10526. ;;
  10527. siemens)
  10528. need_lib_prefix=no
  10529. ;;
  10530. motorola)
  10531. need_lib_prefix=no
  10532. need_version=no
  10533. shlibpath_overrides_runpath=no
  10534. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10535. ;;
  10536. esac
  10537. ;;
  10538. sysv4*MP*)
  10539. if test -d /usr/nec; then
  10540. version_type=linux # correct to gnu/linux during the next big refactor
  10541. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  10542. soname_spec='$libname$shared_ext.$major'
  10543. shlibpath_var=LD_LIBRARY_PATH
  10544. fi
  10545. ;;
  10546. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10547. version_type=sco
  10548. need_lib_prefix=no
  10549. need_version=no
  10550. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  10551. soname_spec='$libname$release$shared_ext$major'
  10552. shlibpath_var=LD_LIBRARY_PATH
  10553. shlibpath_overrides_runpath=yes
  10554. hardcode_into_libs=yes
  10555. if test yes = "$with_gnu_ld"; then
  10556. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10557. else
  10558. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10559. case $host_os in
  10560. sco3.2v5*)
  10561. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10562. ;;
  10563. esac
  10564. fi
  10565. sys_lib_dlsearch_path_spec='/usr/lib'
  10566. ;;
  10567. tpf*)
  10568. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10569. version_type=linux # correct to gnu/linux during the next big refactor
  10570. need_lib_prefix=no
  10571. need_version=no
  10572. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10573. shlibpath_var=LD_LIBRARY_PATH
  10574. shlibpath_overrides_runpath=no
  10575. hardcode_into_libs=yes
  10576. ;;
  10577. uts4*)
  10578. version_type=linux # correct to gnu/linux during the next big refactor
  10579. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10580. soname_spec='$libname$release$shared_ext$major'
  10581. shlibpath_var=LD_LIBRARY_PATH
  10582. ;;
  10583. *)
  10584. dynamic_linker=no
  10585. ;;
  10586. esac
  10587. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10588. printf "%s\n" "$dynamic_linker" >&6; }
  10589. test no = "$dynamic_linker" && can_build_shared=no
  10590. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10591. if test yes = "$GCC"; then
  10592. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10593. fi
  10594. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  10595. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  10596. fi
  10597. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  10598. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  10599. fi
  10600. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  10601. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  10602. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  10603. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  10604. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  10605. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  10606. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10607. printf %s "checking how to hardcode library paths into programs... " >&6; }
  10608. hardcode_action=
  10609. if test -n "$hardcode_libdir_flag_spec" ||
  10610. test -n "$runpath_var" ||
  10611. test yes = "$hardcode_automatic"; then
  10612. # We can hardcode non-existent directories.
  10613. if test no != "$hardcode_direct" &&
  10614. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10615. # have to relink, otherwise we might link with an installed library
  10616. # when we should be linking with a yet-to-be-installed one
  10617. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  10618. test no != "$hardcode_minus_L"; then
  10619. # Linking always hardcodes the temporary library directory.
  10620. hardcode_action=relink
  10621. else
  10622. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10623. hardcode_action=immediate
  10624. fi
  10625. else
  10626. # We cannot hardcode anything, or else we can only hardcode existing
  10627. # directories.
  10628. hardcode_action=unsupported
  10629. fi
  10630. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10631. printf "%s\n" "$hardcode_action" >&6; }
  10632. if test relink = "$hardcode_action" ||
  10633. test yes = "$inherit_rpath"; then
  10634. # Fast installation is not supported
  10635. enable_fast_install=no
  10636. elif test yes = "$shlibpath_overrides_runpath" ||
  10637. test no = "$enable_shared"; then
  10638. # Fast installation is not necessary
  10639. enable_fast_install=needless
  10640. fi
  10641. if test yes != "$enable_dlopen"; then
  10642. enable_dlopen=unknown
  10643. enable_dlopen_self=unknown
  10644. enable_dlopen_self_static=unknown
  10645. else
  10646. lt_cv_dlopen=no
  10647. lt_cv_dlopen_libs=
  10648. case $host_os in
  10649. beos*)
  10650. lt_cv_dlopen=load_add_on
  10651. lt_cv_dlopen_libs=
  10652. lt_cv_dlopen_self=yes
  10653. ;;
  10654. mingw* | pw32* | cegcc*)
  10655. lt_cv_dlopen=LoadLibrary
  10656. lt_cv_dlopen_libs=
  10657. ;;
  10658. cygwin*)
  10659. lt_cv_dlopen=dlopen
  10660. lt_cv_dlopen_libs=
  10661. ;;
  10662. darwin*)
  10663. # if libdl is installed we need to link against it
  10664. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10665. printf %s "checking for dlopen in -ldl... " >&6; }
  10666. if test ${ac_cv_lib_dl_dlopen+y}
  10667. then :
  10668. printf %s "(cached) " >&6
  10669. else $as_nop
  10670. ac_check_lib_save_LIBS=$LIBS
  10671. LIBS="-ldl $LIBS"
  10672. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10673. /* end confdefs.h. */
  10674. /* Override any GCC internal prototype to avoid an error.
  10675. Use char because int might match the return type of a GCC
  10676. builtin and then its argument prototype would still apply. */
  10677. char dlopen ();
  10678. int
  10679. main (void)
  10680. {
  10681. return dlopen ();
  10682. ;
  10683. return 0;
  10684. }
  10685. _ACEOF
  10686. if ac_fn_c_try_link "$LINENO"
  10687. then :
  10688. ac_cv_lib_dl_dlopen=yes
  10689. else $as_nop
  10690. ac_cv_lib_dl_dlopen=no
  10691. fi
  10692. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10693. conftest$ac_exeext conftest.$ac_ext
  10694. LIBS=$ac_check_lib_save_LIBS
  10695. fi
  10696. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10697. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  10698. if test "x$ac_cv_lib_dl_dlopen" = xyes
  10699. then :
  10700. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10701. else $as_nop
  10702. lt_cv_dlopen=dyld
  10703. lt_cv_dlopen_libs=
  10704. lt_cv_dlopen_self=yes
  10705. fi
  10706. ;;
  10707. tpf*)
  10708. # Don't try to run any link tests for TPF. We know it's impossible
  10709. # because TPF is a cross-compiler, and we know how we open DSOs.
  10710. lt_cv_dlopen=dlopen
  10711. lt_cv_dlopen_libs=
  10712. lt_cv_dlopen_self=no
  10713. ;;
  10714. *)
  10715. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10716. if test "x$ac_cv_func_shl_load" = xyes
  10717. then :
  10718. lt_cv_dlopen=shl_load
  10719. else $as_nop
  10720. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10721. printf %s "checking for shl_load in -ldld... " >&6; }
  10722. if test ${ac_cv_lib_dld_shl_load+y}
  10723. then :
  10724. printf %s "(cached) " >&6
  10725. else $as_nop
  10726. ac_check_lib_save_LIBS=$LIBS
  10727. LIBS="-ldld $LIBS"
  10728. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10729. /* end confdefs.h. */
  10730. /* Override any GCC internal prototype to avoid an error.
  10731. Use char because int might match the return type of a GCC
  10732. builtin and then its argument prototype would still apply. */
  10733. char shl_load ();
  10734. int
  10735. main (void)
  10736. {
  10737. return shl_load ();
  10738. ;
  10739. return 0;
  10740. }
  10741. _ACEOF
  10742. if ac_fn_c_try_link "$LINENO"
  10743. then :
  10744. ac_cv_lib_dld_shl_load=yes
  10745. else $as_nop
  10746. ac_cv_lib_dld_shl_load=no
  10747. fi
  10748. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10749. conftest$ac_exeext conftest.$ac_ext
  10750. LIBS=$ac_check_lib_save_LIBS
  10751. fi
  10752. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10753. printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
  10754. if test "x$ac_cv_lib_dld_shl_load" = xyes
  10755. then :
  10756. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  10757. else $as_nop
  10758. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10759. if test "x$ac_cv_func_dlopen" = xyes
  10760. then :
  10761. lt_cv_dlopen=dlopen
  10762. else $as_nop
  10763. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10764. printf %s "checking for dlopen in -ldl... " >&6; }
  10765. if test ${ac_cv_lib_dl_dlopen+y}
  10766. then :
  10767. printf %s "(cached) " >&6
  10768. else $as_nop
  10769. ac_check_lib_save_LIBS=$LIBS
  10770. LIBS="-ldl $LIBS"
  10771. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10772. /* end confdefs.h. */
  10773. /* Override any GCC internal prototype to avoid an error.
  10774. Use char because int might match the return type of a GCC
  10775. builtin and then its argument prototype would still apply. */
  10776. char dlopen ();
  10777. int
  10778. main (void)
  10779. {
  10780. return dlopen ();
  10781. ;
  10782. return 0;
  10783. }
  10784. _ACEOF
  10785. if ac_fn_c_try_link "$LINENO"
  10786. then :
  10787. ac_cv_lib_dl_dlopen=yes
  10788. else $as_nop
  10789. ac_cv_lib_dl_dlopen=no
  10790. fi
  10791. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10792. conftest$ac_exeext conftest.$ac_ext
  10793. LIBS=$ac_check_lib_save_LIBS
  10794. fi
  10795. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10796. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  10797. if test "x$ac_cv_lib_dl_dlopen" = xyes
  10798. then :
  10799. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10800. else $as_nop
  10801. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10802. printf %s "checking for dlopen in -lsvld... " >&6; }
  10803. if test ${ac_cv_lib_svld_dlopen+y}
  10804. then :
  10805. printf %s "(cached) " >&6
  10806. else $as_nop
  10807. ac_check_lib_save_LIBS=$LIBS
  10808. LIBS="-lsvld $LIBS"
  10809. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10810. /* end confdefs.h. */
  10811. /* Override any GCC internal prototype to avoid an error.
  10812. Use char because int might match the return type of a GCC
  10813. builtin and then its argument prototype would still apply. */
  10814. char dlopen ();
  10815. int
  10816. main (void)
  10817. {
  10818. return dlopen ();
  10819. ;
  10820. return 0;
  10821. }
  10822. _ACEOF
  10823. if ac_fn_c_try_link "$LINENO"
  10824. then :
  10825. ac_cv_lib_svld_dlopen=yes
  10826. else $as_nop
  10827. ac_cv_lib_svld_dlopen=no
  10828. fi
  10829. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10830. conftest$ac_exeext conftest.$ac_ext
  10831. LIBS=$ac_check_lib_save_LIBS
  10832. fi
  10833. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10834. printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
  10835. if test "x$ac_cv_lib_svld_dlopen" = xyes
  10836. then :
  10837. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10838. else $as_nop
  10839. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10840. printf %s "checking for dld_link in -ldld... " >&6; }
  10841. if test ${ac_cv_lib_dld_dld_link+y}
  10842. then :
  10843. printf %s "(cached) " >&6
  10844. else $as_nop
  10845. ac_check_lib_save_LIBS=$LIBS
  10846. LIBS="-ldld $LIBS"
  10847. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10848. /* end confdefs.h. */
  10849. /* Override any GCC internal prototype to avoid an error.
  10850. Use char because int might match the return type of a GCC
  10851. builtin and then its argument prototype would still apply. */
  10852. char dld_link ();
  10853. int
  10854. main (void)
  10855. {
  10856. return dld_link ();
  10857. ;
  10858. return 0;
  10859. }
  10860. _ACEOF
  10861. if ac_fn_c_try_link "$LINENO"
  10862. then :
  10863. ac_cv_lib_dld_dld_link=yes
  10864. else $as_nop
  10865. ac_cv_lib_dld_dld_link=no
  10866. fi
  10867. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10868. conftest$ac_exeext conftest.$ac_ext
  10869. LIBS=$ac_check_lib_save_LIBS
  10870. fi
  10871. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10872. printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
  10873. if test "x$ac_cv_lib_dld_dld_link" = xyes
  10874. then :
  10875. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10876. fi
  10877. fi
  10878. fi
  10879. fi
  10880. fi
  10881. fi
  10882. ;;
  10883. esac
  10884. if test no = "$lt_cv_dlopen"; then
  10885. enable_dlopen=no
  10886. else
  10887. enable_dlopen=yes
  10888. fi
  10889. case $lt_cv_dlopen in
  10890. dlopen)
  10891. save_CPPFLAGS=$CPPFLAGS
  10892. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10893. save_LDFLAGS=$LDFLAGS
  10894. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10895. save_LIBS=$LIBS
  10896. LIBS="$lt_cv_dlopen_libs $LIBS"
  10897. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10898. printf %s "checking whether a program can dlopen itself... " >&6; }
  10899. if test ${lt_cv_dlopen_self+y}
  10900. then :
  10901. printf %s "(cached) " >&6
  10902. else $as_nop
  10903. if test yes = "$cross_compiling"; then :
  10904. lt_cv_dlopen_self=cross
  10905. else
  10906. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10907. lt_status=$lt_dlunknown
  10908. cat > conftest.$ac_ext <<_LT_EOF
  10909. #line $LINENO "configure"
  10910. #include "confdefs.h"
  10911. #if HAVE_DLFCN_H
  10912. #include <dlfcn.h>
  10913. #endif
  10914. #include <stdio.h>
  10915. #ifdef RTLD_GLOBAL
  10916. # define LT_DLGLOBAL RTLD_GLOBAL
  10917. #else
  10918. # ifdef DL_GLOBAL
  10919. # define LT_DLGLOBAL DL_GLOBAL
  10920. # else
  10921. # define LT_DLGLOBAL 0
  10922. # endif
  10923. #endif
  10924. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10925. find out it does not work in some platform. */
  10926. #ifndef LT_DLLAZY_OR_NOW
  10927. # ifdef RTLD_LAZY
  10928. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10929. # else
  10930. # ifdef DL_LAZY
  10931. # define LT_DLLAZY_OR_NOW DL_LAZY
  10932. # else
  10933. # ifdef RTLD_NOW
  10934. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10935. # else
  10936. # ifdef DL_NOW
  10937. # define LT_DLLAZY_OR_NOW DL_NOW
  10938. # else
  10939. # define LT_DLLAZY_OR_NOW 0
  10940. # endif
  10941. # endif
  10942. # endif
  10943. # endif
  10944. #endif
  10945. /* When -fvisibility=hidden is used, assume the code has been annotated
  10946. correspondingly for the symbols needed. */
  10947. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10948. int fnord () __attribute__((visibility("default")));
  10949. #endif
  10950. int fnord () { return 42; }
  10951. int main ()
  10952. {
  10953. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10954. int status = $lt_dlunknown;
  10955. if (self)
  10956. {
  10957. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10958. else
  10959. {
  10960. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10961. else puts (dlerror ());
  10962. }
  10963. /* dlclose (self); */
  10964. }
  10965. else
  10966. puts (dlerror ());
  10967. return status;
  10968. }
  10969. _LT_EOF
  10970. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10971. (eval $ac_link) 2>&5
  10972. ac_status=$?
  10973. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10974. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10975. (./conftest; exit; ) >&5 2>/dev/null
  10976. lt_status=$?
  10977. case x$lt_status in
  10978. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10979. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10980. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10981. esac
  10982. else :
  10983. # compilation failed
  10984. lt_cv_dlopen_self=no
  10985. fi
  10986. fi
  10987. rm -fr conftest*
  10988. fi
  10989. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10990. printf "%s\n" "$lt_cv_dlopen_self" >&6; }
  10991. if test yes = "$lt_cv_dlopen_self"; then
  10992. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10993. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10994. printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
  10995. if test ${lt_cv_dlopen_self_static+y}
  10996. then :
  10997. printf %s "(cached) " >&6
  10998. else $as_nop
  10999. if test yes = "$cross_compiling"; then :
  11000. lt_cv_dlopen_self_static=cross
  11001. else
  11002. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11003. lt_status=$lt_dlunknown
  11004. cat > conftest.$ac_ext <<_LT_EOF
  11005. #line $LINENO "configure"
  11006. #include "confdefs.h"
  11007. #if HAVE_DLFCN_H
  11008. #include <dlfcn.h>
  11009. #endif
  11010. #include <stdio.h>
  11011. #ifdef RTLD_GLOBAL
  11012. # define LT_DLGLOBAL RTLD_GLOBAL
  11013. #else
  11014. # ifdef DL_GLOBAL
  11015. # define LT_DLGLOBAL DL_GLOBAL
  11016. # else
  11017. # define LT_DLGLOBAL 0
  11018. # endif
  11019. #endif
  11020. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11021. find out it does not work in some platform. */
  11022. #ifndef LT_DLLAZY_OR_NOW
  11023. # ifdef RTLD_LAZY
  11024. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11025. # else
  11026. # ifdef DL_LAZY
  11027. # define LT_DLLAZY_OR_NOW DL_LAZY
  11028. # else
  11029. # ifdef RTLD_NOW
  11030. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11031. # else
  11032. # ifdef DL_NOW
  11033. # define LT_DLLAZY_OR_NOW DL_NOW
  11034. # else
  11035. # define LT_DLLAZY_OR_NOW 0
  11036. # endif
  11037. # endif
  11038. # endif
  11039. # endif
  11040. #endif
  11041. /* When -fvisibility=hidden is used, assume the code has been annotated
  11042. correspondingly for the symbols needed. */
  11043. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11044. int fnord () __attribute__((visibility("default")));
  11045. #endif
  11046. int fnord () { return 42; }
  11047. int main ()
  11048. {
  11049. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11050. int status = $lt_dlunknown;
  11051. if (self)
  11052. {
  11053. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11054. else
  11055. {
  11056. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11057. else puts (dlerror ());
  11058. }
  11059. /* dlclose (self); */
  11060. }
  11061. else
  11062. puts (dlerror ());
  11063. return status;
  11064. }
  11065. _LT_EOF
  11066. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11067. (eval $ac_link) 2>&5
  11068. ac_status=$?
  11069. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11070. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11071. (./conftest; exit; ) >&5 2>/dev/null
  11072. lt_status=$?
  11073. case x$lt_status in
  11074. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11075. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11076. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11077. esac
  11078. else :
  11079. # compilation failed
  11080. lt_cv_dlopen_self_static=no
  11081. fi
  11082. fi
  11083. rm -fr conftest*
  11084. fi
  11085. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11086. printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
  11087. fi
  11088. CPPFLAGS=$save_CPPFLAGS
  11089. LDFLAGS=$save_LDFLAGS
  11090. LIBS=$save_LIBS
  11091. ;;
  11092. esac
  11093. case $lt_cv_dlopen_self in
  11094. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11095. *) enable_dlopen_self=unknown ;;
  11096. esac
  11097. case $lt_cv_dlopen_self_static in
  11098. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11099. *) enable_dlopen_self_static=unknown ;;
  11100. esac
  11101. fi
  11102. striplib=
  11103. old_striplib=
  11104. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11105. printf %s "checking whether stripping libraries is possible... " >&6; }
  11106. if test -z "$STRIP"; then
  11107. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11108. printf "%s\n" "no" >&6; }
  11109. else
  11110. if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11111. old_striplib="$STRIP --strip-debug"
  11112. striplib="$STRIP --strip-unneeded"
  11113. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11114. printf "%s\n" "yes" >&6; }
  11115. else
  11116. case $host_os in
  11117. darwin*)
  11118. # FIXME - insert some real tests, host_os isn't really good enough
  11119. striplib="$STRIP -x"
  11120. old_striplib="$STRIP -S"
  11121. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11122. printf "%s\n" "yes" >&6; }
  11123. ;;
  11124. freebsd*)
  11125. if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
  11126. old_striplib="$STRIP --strip-debug"
  11127. striplib="$STRIP --strip-unneeded"
  11128. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11129. printf "%s\n" "yes" >&6; }
  11130. else
  11131. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11132. printf "%s\n" "no" >&6; }
  11133. fi
  11134. ;;
  11135. *)
  11136. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11137. printf "%s\n" "no" >&6; }
  11138. ;;
  11139. esac
  11140. fi
  11141. fi
  11142. # Report what library types will actually be built
  11143. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11144. printf %s "checking if libtool supports shared libraries... " >&6; }
  11145. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11146. printf "%s\n" "$can_build_shared" >&6; }
  11147. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11148. printf %s "checking whether to build shared libraries... " >&6; }
  11149. test no = "$can_build_shared" && enable_shared=no
  11150. # On AIX, shared libraries and static libraries use the same namespace, and
  11151. # are all built from PIC.
  11152. case $host_os in
  11153. aix3*)
  11154. test yes = "$enable_shared" && enable_static=no
  11155. if test -n "$RANLIB"; then
  11156. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11157. postinstall_cmds='$RANLIB $lib'
  11158. fi
  11159. ;;
  11160. aix[4-9]*)
  11161. if test ia64 != "$host_cpu"; then
  11162. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  11163. yes,aix,yes) ;; # shared object as lib.so file only
  11164. yes,svr4,*) ;; # shared object as lib.so archive member only
  11165. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  11166. esac
  11167. fi
  11168. ;;
  11169. esac
  11170. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11171. printf "%s\n" "$enable_shared" >&6; }
  11172. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11173. printf %s "checking whether to build static libraries... " >&6; }
  11174. # Make sure either enable_shared or enable_static is yes.
  11175. test yes = "$enable_shared" || enable_static=yes
  11176. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11177. printf "%s\n" "$enable_static" >&6; }
  11178. fi
  11179. ac_ext=c
  11180. ac_cpp='$CPP $CPPFLAGS'
  11181. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11182. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11183. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11184. CC=$lt_save_CC
  11185. ac_config_commands="$ac_config_commands libtool"
  11186. # Only expand once:
  11187. if test -n "$ac_tool_prefix"; then
  11188. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  11189. set dummy ${ac_tool_prefix}windres; ac_word=$2
  11190. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11191. printf %s "checking for $ac_word... " >&6; }
  11192. if test ${ac_cv_prog_RC+y}
  11193. then :
  11194. printf %s "(cached) " >&6
  11195. else $as_nop
  11196. if test -n "$RC"; then
  11197. ac_cv_prog_RC="$RC" # Let the user override the test.
  11198. else
  11199. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11200. for as_dir in $PATH
  11201. do
  11202. IFS=$as_save_IFS
  11203. case $as_dir in #(((
  11204. '') as_dir=./ ;;
  11205. */) ;;
  11206. *) as_dir=$as_dir/ ;;
  11207. esac
  11208. for ac_exec_ext in '' $ac_executable_extensions; do
  11209. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11210. ac_cv_prog_RC="${ac_tool_prefix}windres"
  11211. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11212. break 2
  11213. fi
  11214. done
  11215. done
  11216. IFS=$as_save_IFS
  11217. fi
  11218. fi
  11219. RC=$ac_cv_prog_RC
  11220. if test -n "$RC"; then
  11221. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  11222. printf "%s\n" "$RC" >&6; }
  11223. else
  11224. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11225. printf "%s\n" "no" >&6; }
  11226. fi
  11227. fi
  11228. if test -z "$ac_cv_prog_RC"; then
  11229. ac_ct_RC=$RC
  11230. # Extract the first word of "windres", so it can be a program name with args.
  11231. set dummy windres; ac_word=$2
  11232. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11233. printf %s "checking for $ac_word... " >&6; }
  11234. if test ${ac_cv_prog_ac_ct_RC+y}
  11235. then :
  11236. printf %s "(cached) " >&6
  11237. else $as_nop
  11238. if test -n "$ac_ct_RC"; then
  11239. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  11240. else
  11241. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11242. for as_dir in $PATH
  11243. do
  11244. IFS=$as_save_IFS
  11245. case $as_dir in #(((
  11246. '') as_dir=./ ;;
  11247. */) ;;
  11248. *) as_dir=$as_dir/ ;;
  11249. esac
  11250. for ac_exec_ext in '' $ac_executable_extensions; do
  11251. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11252. ac_cv_prog_ac_ct_RC="windres"
  11253. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11254. break 2
  11255. fi
  11256. done
  11257. done
  11258. IFS=$as_save_IFS
  11259. fi
  11260. fi
  11261. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  11262. if test -n "$ac_ct_RC"; then
  11263. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  11264. printf "%s\n" "$ac_ct_RC" >&6; }
  11265. else
  11266. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11267. printf "%s\n" "no" >&6; }
  11268. fi
  11269. if test "x$ac_ct_RC" = x; then
  11270. RC=""
  11271. else
  11272. case $cross_compiling:$ac_tool_warned in
  11273. yes:)
  11274. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11275. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11276. ac_tool_warned=yes ;;
  11277. esac
  11278. RC=$ac_ct_RC
  11279. fi
  11280. else
  11281. RC="$ac_cv_prog_RC"
  11282. fi
  11283. # Source file extension for RC test sources.
  11284. ac_ext=rc
  11285. # Object file extension for compiled RC test sources.
  11286. objext=o
  11287. objext_RC=$objext
  11288. # Code to be used in simple compile tests
  11289. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  11290. # Code to be used in simple link tests
  11291. lt_simple_link_test_code=$lt_simple_compile_test_code
  11292. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11293. # If no C compiler was specified, use CC.
  11294. LTCC=${LTCC-"$CC"}
  11295. # If no C compiler flags were specified, use CFLAGS.
  11296. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11297. # Allow CC to be a program name with arguments.
  11298. compiler=$CC
  11299. # save warnings/boilerplate of simple test code
  11300. ac_outfile=conftest.$ac_objext
  11301. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11302. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11303. _lt_compiler_boilerplate=`cat conftest.err`
  11304. $RM conftest*
  11305. ac_outfile=conftest.$ac_objext
  11306. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11307. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11308. _lt_linker_boilerplate=`cat conftest.err`
  11309. $RM -r conftest*
  11310. # Allow CC to be a program name with arguments.
  11311. lt_save_CC=$CC
  11312. lt_save_CFLAGS=$CFLAGS
  11313. lt_save_GCC=$GCC
  11314. GCC=
  11315. CC=${RC-"windres"}
  11316. CFLAGS=
  11317. compiler=$CC
  11318. compiler_RC=$CC
  11319. func_cc_basename $compiler
  11320. cc_basename=$func_cc_basename_result
  11321. lt_cv_prog_compiler_c_o_RC=yes
  11322. if test -n "$compiler"; then
  11323. :
  11324. fi
  11325. GCC=$lt_save_GCC
  11326. ac_ext=c
  11327. ac_cpp='$CPP $CPPFLAGS'
  11328. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11329. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11330. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11331. CC=$lt_save_CC
  11332. CFLAGS=$lt_save_CFLAGS
  11333. # For historical reasons, the library name redundantly includes the major
  11334. # version twice: libSDL2-2.0.so.0.
  11335. # TODO: in SDL 3, stop using -release, which will simplify it to libSDL3.so.0
  11336. LT_RELEASE=2.0
  11337. # Increment this if there is an incompatible change - but if that happens,
  11338. # we should rename the library from SDL2 to SDL3, at which point this would
  11339. # reset to 0 anyway.
  11340. LT_MAJOR=0
  11341. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  11342. LT_CURRENT=`expr $LT_MAJOR + $LT_AGE`
  11343. LT_REVISION=$SDL_INTERFACE_AGE
  11344. for ac_prog in gawk mawk nawk awk
  11345. do
  11346. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11347. set dummy $ac_prog; ac_word=$2
  11348. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11349. printf %s "checking for $ac_word... " >&6; }
  11350. if test ${ac_cv_prog_AWK+y}
  11351. then :
  11352. printf %s "(cached) " >&6
  11353. else $as_nop
  11354. if test -n "$AWK"; then
  11355. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  11356. else
  11357. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11358. for as_dir in $PATH
  11359. do
  11360. IFS=$as_save_IFS
  11361. case $as_dir in #(((
  11362. '') as_dir=./ ;;
  11363. */) ;;
  11364. *) as_dir=$as_dir/ ;;
  11365. esac
  11366. for ac_exec_ext in '' $ac_executable_extensions; do
  11367. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11368. ac_cv_prog_AWK="$ac_prog"
  11369. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11370. break 2
  11371. fi
  11372. done
  11373. done
  11374. IFS=$as_save_IFS
  11375. fi
  11376. fi
  11377. AWK=$ac_cv_prog_AWK
  11378. if test -n "$AWK"; then
  11379. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  11380. printf "%s\n" "$AWK" >&6; }
  11381. else
  11382. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11383. printf "%s\n" "no" >&6; }
  11384. fi
  11385. test -n "$AWK" && break
  11386. done
  11387. ac_ext=c
  11388. ac_cpp='$CPP $CPPFLAGS'
  11389. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11390. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11391. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11392. if test -n "$ac_tool_prefix"; then
  11393. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  11394. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  11395. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11396. printf %s "checking for $ac_word... " >&6; }
  11397. if test ${ac_cv_prog_CC+y}
  11398. then :
  11399. printf %s "(cached) " >&6
  11400. else $as_nop
  11401. if test -n "$CC"; then
  11402. ac_cv_prog_CC="$CC" # Let the user override the test.
  11403. else
  11404. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11405. for as_dir in $PATH
  11406. do
  11407. IFS=$as_save_IFS
  11408. case $as_dir in #(((
  11409. '') as_dir=./ ;;
  11410. */) ;;
  11411. *) as_dir=$as_dir/ ;;
  11412. esac
  11413. for ac_exec_ext in '' $ac_executable_extensions; do
  11414. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11415. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  11416. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11417. break 2
  11418. fi
  11419. done
  11420. done
  11421. IFS=$as_save_IFS
  11422. fi
  11423. fi
  11424. CC=$ac_cv_prog_CC
  11425. if test -n "$CC"; then
  11426. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11427. printf "%s\n" "$CC" >&6; }
  11428. else
  11429. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11430. printf "%s\n" "no" >&6; }
  11431. fi
  11432. fi
  11433. if test -z "$ac_cv_prog_CC"; then
  11434. ac_ct_CC=$CC
  11435. # Extract the first word of "gcc", so it can be a program name with args.
  11436. set dummy gcc; ac_word=$2
  11437. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11438. printf %s "checking for $ac_word... " >&6; }
  11439. if test ${ac_cv_prog_ac_ct_CC+y}
  11440. then :
  11441. printf %s "(cached) " >&6
  11442. else $as_nop
  11443. if test -n "$ac_ct_CC"; then
  11444. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11445. else
  11446. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11447. for as_dir in $PATH
  11448. do
  11449. IFS=$as_save_IFS
  11450. case $as_dir in #(((
  11451. '') as_dir=./ ;;
  11452. */) ;;
  11453. *) as_dir=$as_dir/ ;;
  11454. esac
  11455. for ac_exec_ext in '' $ac_executable_extensions; do
  11456. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11457. ac_cv_prog_ac_ct_CC="gcc"
  11458. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11459. break 2
  11460. fi
  11461. done
  11462. done
  11463. IFS=$as_save_IFS
  11464. fi
  11465. fi
  11466. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11467. if test -n "$ac_ct_CC"; then
  11468. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11469. printf "%s\n" "$ac_ct_CC" >&6; }
  11470. else
  11471. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11472. printf "%s\n" "no" >&6; }
  11473. fi
  11474. if test "x$ac_ct_CC" = x; then
  11475. CC=""
  11476. else
  11477. case $cross_compiling:$ac_tool_warned in
  11478. yes:)
  11479. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11480. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11481. ac_tool_warned=yes ;;
  11482. esac
  11483. CC=$ac_ct_CC
  11484. fi
  11485. else
  11486. CC="$ac_cv_prog_CC"
  11487. fi
  11488. if test -z "$CC"; then
  11489. if test -n "$ac_tool_prefix"; then
  11490. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  11491. set dummy ${ac_tool_prefix}cc; ac_word=$2
  11492. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11493. printf %s "checking for $ac_word... " >&6; }
  11494. if test ${ac_cv_prog_CC+y}
  11495. then :
  11496. printf %s "(cached) " >&6
  11497. else $as_nop
  11498. if test -n "$CC"; then
  11499. ac_cv_prog_CC="$CC" # Let the user override the test.
  11500. else
  11501. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11502. for as_dir in $PATH
  11503. do
  11504. IFS=$as_save_IFS
  11505. case $as_dir in #(((
  11506. '') as_dir=./ ;;
  11507. */) ;;
  11508. *) as_dir=$as_dir/ ;;
  11509. esac
  11510. for ac_exec_ext in '' $ac_executable_extensions; do
  11511. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11512. ac_cv_prog_CC="${ac_tool_prefix}cc"
  11513. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11514. break 2
  11515. fi
  11516. done
  11517. done
  11518. IFS=$as_save_IFS
  11519. fi
  11520. fi
  11521. CC=$ac_cv_prog_CC
  11522. if test -n "$CC"; then
  11523. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11524. printf "%s\n" "$CC" >&6; }
  11525. else
  11526. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11527. printf "%s\n" "no" >&6; }
  11528. fi
  11529. fi
  11530. fi
  11531. if test -z "$CC"; then
  11532. # Extract the first word of "cc", so it can be a program name with args.
  11533. set dummy cc; ac_word=$2
  11534. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11535. printf %s "checking for $ac_word... " >&6; }
  11536. if test ${ac_cv_prog_CC+y}
  11537. then :
  11538. printf %s "(cached) " >&6
  11539. else $as_nop
  11540. if test -n "$CC"; then
  11541. ac_cv_prog_CC="$CC" # Let the user override the test.
  11542. else
  11543. ac_prog_rejected=no
  11544. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11545. for as_dir in $PATH
  11546. do
  11547. IFS=$as_save_IFS
  11548. case $as_dir in #(((
  11549. '') as_dir=./ ;;
  11550. */) ;;
  11551. *) as_dir=$as_dir/ ;;
  11552. esac
  11553. for ac_exec_ext in '' $ac_executable_extensions; do
  11554. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11555. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  11556. ac_prog_rejected=yes
  11557. continue
  11558. fi
  11559. ac_cv_prog_CC="cc"
  11560. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11561. break 2
  11562. fi
  11563. done
  11564. done
  11565. IFS=$as_save_IFS
  11566. if test $ac_prog_rejected = yes; then
  11567. # We found a bogon in the path, so make sure we never use it.
  11568. set dummy $ac_cv_prog_CC
  11569. shift
  11570. if test $# != 0; then
  11571. # We chose a different compiler from the bogus one.
  11572. # However, it has the same basename, so the bogon will be chosen
  11573. # first if we set CC to just the basename; use the full file name.
  11574. shift
  11575. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  11576. fi
  11577. fi
  11578. fi
  11579. fi
  11580. CC=$ac_cv_prog_CC
  11581. if test -n "$CC"; then
  11582. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11583. printf "%s\n" "$CC" >&6; }
  11584. else
  11585. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11586. printf "%s\n" "no" >&6; }
  11587. fi
  11588. fi
  11589. if test -z "$CC"; then
  11590. if test -n "$ac_tool_prefix"; then
  11591. for ac_prog in cl.exe
  11592. do
  11593. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11594. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11595. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11596. printf %s "checking for $ac_word... " >&6; }
  11597. if test ${ac_cv_prog_CC+y}
  11598. then :
  11599. printf %s "(cached) " >&6
  11600. else $as_nop
  11601. if test -n "$CC"; then
  11602. ac_cv_prog_CC="$CC" # Let the user override the test.
  11603. else
  11604. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11605. for as_dir in $PATH
  11606. do
  11607. IFS=$as_save_IFS
  11608. case $as_dir in #(((
  11609. '') as_dir=./ ;;
  11610. */) ;;
  11611. *) as_dir=$as_dir/ ;;
  11612. esac
  11613. for ac_exec_ext in '' $ac_executable_extensions; do
  11614. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11615. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  11616. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11617. break 2
  11618. fi
  11619. done
  11620. done
  11621. IFS=$as_save_IFS
  11622. fi
  11623. fi
  11624. CC=$ac_cv_prog_CC
  11625. if test -n "$CC"; then
  11626. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11627. printf "%s\n" "$CC" >&6; }
  11628. else
  11629. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11630. printf "%s\n" "no" >&6; }
  11631. fi
  11632. test -n "$CC" && break
  11633. done
  11634. fi
  11635. if test -z "$CC"; then
  11636. ac_ct_CC=$CC
  11637. for ac_prog in cl.exe
  11638. do
  11639. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11640. set dummy $ac_prog; ac_word=$2
  11641. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11642. printf %s "checking for $ac_word... " >&6; }
  11643. if test ${ac_cv_prog_ac_ct_CC+y}
  11644. then :
  11645. printf %s "(cached) " >&6
  11646. else $as_nop
  11647. if test -n "$ac_ct_CC"; then
  11648. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11649. else
  11650. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11651. for as_dir in $PATH
  11652. do
  11653. IFS=$as_save_IFS
  11654. case $as_dir in #(((
  11655. '') as_dir=./ ;;
  11656. */) ;;
  11657. *) as_dir=$as_dir/ ;;
  11658. esac
  11659. for ac_exec_ext in '' $ac_executable_extensions; do
  11660. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11661. ac_cv_prog_ac_ct_CC="$ac_prog"
  11662. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11663. break 2
  11664. fi
  11665. done
  11666. done
  11667. IFS=$as_save_IFS
  11668. fi
  11669. fi
  11670. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11671. if test -n "$ac_ct_CC"; then
  11672. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11673. printf "%s\n" "$ac_ct_CC" >&6; }
  11674. else
  11675. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11676. printf "%s\n" "no" >&6; }
  11677. fi
  11678. test -n "$ac_ct_CC" && break
  11679. done
  11680. if test "x$ac_ct_CC" = x; then
  11681. CC=""
  11682. else
  11683. case $cross_compiling:$ac_tool_warned in
  11684. yes:)
  11685. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11686. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11687. ac_tool_warned=yes ;;
  11688. esac
  11689. CC=$ac_ct_CC
  11690. fi
  11691. fi
  11692. fi
  11693. if test -z "$CC"; then
  11694. if test -n "$ac_tool_prefix"; then
  11695. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  11696. set dummy ${ac_tool_prefix}clang; ac_word=$2
  11697. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11698. printf %s "checking for $ac_word... " >&6; }
  11699. if test ${ac_cv_prog_CC+y}
  11700. then :
  11701. printf %s "(cached) " >&6
  11702. else $as_nop
  11703. if test -n "$CC"; then
  11704. ac_cv_prog_CC="$CC" # Let the user override the test.
  11705. else
  11706. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11707. for as_dir in $PATH
  11708. do
  11709. IFS=$as_save_IFS
  11710. case $as_dir in #(((
  11711. '') as_dir=./ ;;
  11712. */) ;;
  11713. *) as_dir=$as_dir/ ;;
  11714. esac
  11715. for ac_exec_ext in '' $ac_executable_extensions; do
  11716. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11717. ac_cv_prog_CC="${ac_tool_prefix}clang"
  11718. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11719. break 2
  11720. fi
  11721. done
  11722. done
  11723. IFS=$as_save_IFS
  11724. fi
  11725. fi
  11726. CC=$ac_cv_prog_CC
  11727. if test -n "$CC"; then
  11728. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11729. printf "%s\n" "$CC" >&6; }
  11730. else
  11731. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11732. printf "%s\n" "no" >&6; }
  11733. fi
  11734. fi
  11735. if test -z "$ac_cv_prog_CC"; then
  11736. ac_ct_CC=$CC
  11737. # Extract the first word of "clang", so it can be a program name with args.
  11738. set dummy clang; ac_word=$2
  11739. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11740. printf %s "checking for $ac_word... " >&6; }
  11741. if test ${ac_cv_prog_ac_ct_CC+y}
  11742. then :
  11743. printf %s "(cached) " >&6
  11744. else $as_nop
  11745. if test -n "$ac_ct_CC"; then
  11746. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11747. else
  11748. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11749. for as_dir in $PATH
  11750. do
  11751. IFS=$as_save_IFS
  11752. case $as_dir in #(((
  11753. '') as_dir=./ ;;
  11754. */) ;;
  11755. *) as_dir=$as_dir/ ;;
  11756. esac
  11757. for ac_exec_ext in '' $ac_executable_extensions; do
  11758. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11759. ac_cv_prog_ac_ct_CC="clang"
  11760. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11761. break 2
  11762. fi
  11763. done
  11764. done
  11765. IFS=$as_save_IFS
  11766. fi
  11767. fi
  11768. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11769. if test -n "$ac_ct_CC"; then
  11770. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11771. printf "%s\n" "$ac_ct_CC" >&6; }
  11772. else
  11773. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11774. printf "%s\n" "no" >&6; }
  11775. fi
  11776. if test "x$ac_ct_CC" = x; then
  11777. CC=""
  11778. else
  11779. case $cross_compiling:$ac_tool_warned in
  11780. yes:)
  11781. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11782. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11783. ac_tool_warned=yes ;;
  11784. esac
  11785. CC=$ac_ct_CC
  11786. fi
  11787. else
  11788. CC="$ac_cv_prog_CC"
  11789. fi
  11790. fi
  11791. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11792. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  11793. as_fn_error $? "no acceptable C compiler found in \$PATH
  11794. See \`config.log' for more details" "$LINENO" 5; }
  11795. # Provide some information about the compiler.
  11796. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  11797. set X $ac_compile
  11798. ac_compiler=$2
  11799. for ac_option in --version -v -V -qversion -version; do
  11800. { { ac_try="$ac_compiler $ac_option >&5"
  11801. case "(($ac_try" in
  11802. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11803. *) ac_try_echo=$ac_try;;
  11804. esac
  11805. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11806. printf "%s\n" "$ac_try_echo"; } >&5
  11807. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  11808. ac_status=$?
  11809. if test -s conftest.err; then
  11810. sed '10a\
  11811. ... rest of stderr output deleted ...
  11812. 10q' conftest.err >conftest.er1
  11813. cat conftest.er1 >&5
  11814. fi
  11815. rm -f conftest.er1 conftest.err
  11816. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11817. test $ac_status = 0; }
  11818. done
  11819. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  11820. printf %s "checking whether the compiler supports GNU C... " >&6; }
  11821. if test ${ac_cv_c_compiler_gnu+y}
  11822. then :
  11823. printf %s "(cached) " >&6
  11824. else $as_nop
  11825. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11826. /* end confdefs.h. */
  11827. int
  11828. main (void)
  11829. {
  11830. #ifndef __GNUC__
  11831. choke me
  11832. #endif
  11833. ;
  11834. return 0;
  11835. }
  11836. _ACEOF
  11837. if ac_fn_c_try_compile "$LINENO"
  11838. then :
  11839. ac_compiler_gnu=yes
  11840. else $as_nop
  11841. ac_compiler_gnu=no
  11842. fi
  11843. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11844. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  11845. fi
  11846. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  11847. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  11848. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11849. if test $ac_compiler_gnu = yes; then
  11850. GCC=yes
  11851. else
  11852. GCC=
  11853. fi
  11854. ac_test_CFLAGS=${CFLAGS+y}
  11855. ac_save_CFLAGS=$CFLAGS
  11856. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  11857. printf %s "checking whether $CC accepts -g... " >&6; }
  11858. if test ${ac_cv_prog_cc_g+y}
  11859. then :
  11860. printf %s "(cached) " >&6
  11861. else $as_nop
  11862. ac_save_c_werror_flag=$ac_c_werror_flag
  11863. ac_c_werror_flag=yes
  11864. ac_cv_prog_cc_g=no
  11865. CFLAGS="-g"
  11866. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11867. /* end confdefs.h. */
  11868. int
  11869. main (void)
  11870. {
  11871. ;
  11872. return 0;
  11873. }
  11874. _ACEOF
  11875. if ac_fn_c_try_compile "$LINENO"
  11876. then :
  11877. ac_cv_prog_cc_g=yes
  11878. else $as_nop
  11879. CFLAGS=""
  11880. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11881. /* end confdefs.h. */
  11882. int
  11883. main (void)
  11884. {
  11885. ;
  11886. return 0;
  11887. }
  11888. _ACEOF
  11889. if ac_fn_c_try_compile "$LINENO"
  11890. then :
  11891. else $as_nop
  11892. ac_c_werror_flag=$ac_save_c_werror_flag
  11893. CFLAGS="-g"
  11894. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11895. /* end confdefs.h. */
  11896. int
  11897. main (void)
  11898. {
  11899. ;
  11900. return 0;
  11901. }
  11902. _ACEOF
  11903. if ac_fn_c_try_compile "$LINENO"
  11904. then :
  11905. ac_cv_prog_cc_g=yes
  11906. fi
  11907. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11908. fi
  11909. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11910. fi
  11911. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11912. ac_c_werror_flag=$ac_save_c_werror_flag
  11913. fi
  11914. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  11915. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  11916. if test $ac_test_CFLAGS; then
  11917. CFLAGS=$ac_save_CFLAGS
  11918. elif test $ac_cv_prog_cc_g = yes; then
  11919. if test "$GCC" = yes; then
  11920. CFLAGS="-g -O2"
  11921. else
  11922. CFLAGS="-g"
  11923. fi
  11924. else
  11925. if test "$GCC" = yes; then
  11926. CFLAGS="-O2"
  11927. else
  11928. CFLAGS=
  11929. fi
  11930. fi
  11931. ac_prog_cc_stdc=no
  11932. if test x$ac_prog_cc_stdc = xno
  11933. then :
  11934. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  11935. printf %s "checking for $CC option to enable C11 features... " >&6; }
  11936. if test ${ac_cv_prog_cc_c11+y}
  11937. then :
  11938. printf %s "(cached) " >&6
  11939. else $as_nop
  11940. ac_cv_prog_cc_c11=no
  11941. ac_save_CC=$CC
  11942. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11943. /* end confdefs.h. */
  11944. $ac_c_conftest_c11_program
  11945. _ACEOF
  11946. for ac_arg in '' -std=gnu11
  11947. do
  11948. CC="$ac_save_CC $ac_arg"
  11949. if ac_fn_c_try_compile "$LINENO"
  11950. then :
  11951. ac_cv_prog_cc_c11=$ac_arg
  11952. fi
  11953. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11954. test "x$ac_cv_prog_cc_c11" != "xno" && break
  11955. done
  11956. rm -f conftest.$ac_ext
  11957. CC=$ac_save_CC
  11958. fi
  11959. if test "x$ac_cv_prog_cc_c11" = xno
  11960. then :
  11961. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11962. printf "%s\n" "unsupported" >&6; }
  11963. else $as_nop
  11964. if test "x$ac_cv_prog_cc_c11" = x
  11965. then :
  11966. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11967. printf "%s\n" "none needed" >&6; }
  11968. else $as_nop
  11969. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  11970. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  11971. CC="$CC $ac_cv_prog_cc_c11"
  11972. fi
  11973. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  11974. ac_prog_cc_stdc=c11
  11975. fi
  11976. fi
  11977. if test x$ac_prog_cc_stdc = xno
  11978. then :
  11979. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  11980. printf %s "checking for $CC option to enable C99 features... " >&6; }
  11981. if test ${ac_cv_prog_cc_c99+y}
  11982. then :
  11983. printf %s "(cached) " >&6
  11984. else $as_nop
  11985. ac_cv_prog_cc_c99=no
  11986. ac_save_CC=$CC
  11987. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11988. /* end confdefs.h. */
  11989. $ac_c_conftest_c99_program
  11990. _ACEOF
  11991. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  11992. do
  11993. CC="$ac_save_CC $ac_arg"
  11994. if ac_fn_c_try_compile "$LINENO"
  11995. then :
  11996. ac_cv_prog_cc_c99=$ac_arg
  11997. fi
  11998. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11999. test "x$ac_cv_prog_cc_c99" != "xno" && break
  12000. done
  12001. rm -f conftest.$ac_ext
  12002. CC=$ac_save_CC
  12003. fi
  12004. if test "x$ac_cv_prog_cc_c99" = xno
  12005. then :
  12006. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12007. printf "%s\n" "unsupported" >&6; }
  12008. else $as_nop
  12009. if test "x$ac_cv_prog_cc_c99" = x
  12010. then :
  12011. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12012. printf "%s\n" "none needed" >&6; }
  12013. else $as_nop
  12014. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  12015. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  12016. CC="$CC $ac_cv_prog_cc_c99"
  12017. fi
  12018. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  12019. ac_prog_cc_stdc=c99
  12020. fi
  12021. fi
  12022. if test x$ac_prog_cc_stdc = xno
  12023. then :
  12024. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  12025. printf %s "checking for $CC option to enable C89 features... " >&6; }
  12026. if test ${ac_cv_prog_cc_c89+y}
  12027. then :
  12028. printf %s "(cached) " >&6
  12029. else $as_nop
  12030. ac_cv_prog_cc_c89=no
  12031. ac_save_CC=$CC
  12032. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12033. /* end confdefs.h. */
  12034. $ac_c_conftest_c89_program
  12035. _ACEOF
  12036. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  12037. do
  12038. CC="$ac_save_CC $ac_arg"
  12039. if ac_fn_c_try_compile "$LINENO"
  12040. then :
  12041. ac_cv_prog_cc_c89=$ac_arg
  12042. fi
  12043. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12044. test "x$ac_cv_prog_cc_c89" != "xno" && break
  12045. done
  12046. rm -f conftest.$ac_ext
  12047. CC=$ac_save_CC
  12048. fi
  12049. if test "x$ac_cv_prog_cc_c89" = xno
  12050. then :
  12051. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12052. printf "%s\n" "unsupported" >&6; }
  12053. else $as_nop
  12054. if test "x$ac_cv_prog_cc_c89" = x
  12055. then :
  12056. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12057. printf "%s\n" "none needed" >&6; }
  12058. else $as_nop
  12059. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  12060. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  12061. CC="$CC $ac_cv_prog_cc_c89"
  12062. fi
  12063. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  12064. ac_prog_cc_stdc=c89
  12065. fi
  12066. fi
  12067. ac_ext=c
  12068. ac_cpp='$CPP $CPPFLAGS'
  12069. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12070. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12071. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12072. ac_ext=cpp
  12073. ac_cpp='$CXXCPP $CPPFLAGS'
  12074. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12075. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12076. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12077. if test -z "$CXX"; then
  12078. if test -n "$CCC"; then
  12079. CXX=$CCC
  12080. else
  12081. if test -n "$ac_tool_prefix"; then
  12082. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  12083. do
  12084. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  12085. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  12086. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12087. printf %s "checking for $ac_word... " >&6; }
  12088. if test ${ac_cv_prog_CXX+y}
  12089. then :
  12090. printf %s "(cached) " >&6
  12091. else $as_nop
  12092. if test -n "$CXX"; then
  12093. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  12094. else
  12095. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12096. for as_dir in $PATH
  12097. do
  12098. IFS=$as_save_IFS
  12099. case $as_dir in #(((
  12100. '') as_dir=./ ;;
  12101. */) ;;
  12102. *) as_dir=$as_dir/ ;;
  12103. esac
  12104. for ac_exec_ext in '' $ac_executable_extensions; do
  12105. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  12106. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  12107. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  12108. break 2
  12109. fi
  12110. done
  12111. done
  12112. IFS=$as_save_IFS
  12113. fi
  12114. fi
  12115. CXX=$ac_cv_prog_CXX
  12116. if test -n "$CXX"; then
  12117. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  12118. printf "%s\n" "$CXX" >&6; }
  12119. else
  12120. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12121. printf "%s\n" "no" >&6; }
  12122. fi
  12123. test -n "$CXX" && break
  12124. done
  12125. fi
  12126. if test -z "$CXX"; then
  12127. ac_ct_CXX=$CXX
  12128. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  12129. do
  12130. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12131. set dummy $ac_prog; ac_word=$2
  12132. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12133. printf %s "checking for $ac_word... " >&6; }
  12134. if test ${ac_cv_prog_ac_ct_CXX+y}
  12135. then :
  12136. printf %s "(cached) " >&6
  12137. else $as_nop
  12138. if test -n "$ac_ct_CXX"; then
  12139. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  12140. else
  12141. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12142. for as_dir in $PATH
  12143. do
  12144. IFS=$as_save_IFS
  12145. case $as_dir in #(((
  12146. '') as_dir=./ ;;
  12147. */) ;;
  12148. *) as_dir=$as_dir/ ;;
  12149. esac
  12150. for ac_exec_ext in '' $ac_executable_extensions; do
  12151. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  12152. ac_cv_prog_ac_ct_CXX="$ac_prog"
  12153. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  12154. break 2
  12155. fi
  12156. done
  12157. done
  12158. IFS=$as_save_IFS
  12159. fi
  12160. fi
  12161. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  12162. if test -n "$ac_ct_CXX"; then
  12163. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  12164. printf "%s\n" "$ac_ct_CXX" >&6; }
  12165. else
  12166. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12167. printf "%s\n" "no" >&6; }
  12168. fi
  12169. test -n "$ac_ct_CXX" && break
  12170. done
  12171. if test "x$ac_ct_CXX" = x; then
  12172. CXX="g++"
  12173. else
  12174. case $cross_compiling:$ac_tool_warned in
  12175. yes:)
  12176. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12177. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12178. ac_tool_warned=yes ;;
  12179. esac
  12180. CXX=$ac_ct_CXX
  12181. fi
  12182. fi
  12183. fi
  12184. fi
  12185. # Provide some information about the compiler.
  12186. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  12187. set X $ac_compile
  12188. ac_compiler=$2
  12189. for ac_option in --version -v -V -qversion; do
  12190. { { ac_try="$ac_compiler $ac_option >&5"
  12191. case "(($ac_try" in
  12192. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12193. *) ac_try_echo=$ac_try;;
  12194. esac
  12195. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12196. printf "%s\n" "$ac_try_echo"; } >&5
  12197. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  12198. ac_status=$?
  12199. if test -s conftest.err; then
  12200. sed '10a\
  12201. ... rest of stderr output deleted ...
  12202. 10q' conftest.err >conftest.er1
  12203. cat conftest.er1 >&5
  12204. fi
  12205. rm -f conftest.er1 conftest.err
  12206. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12207. test $ac_status = 0; }
  12208. done
  12209. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
  12210. printf %s "checking whether the compiler supports GNU C++... " >&6; }
  12211. if test ${ac_cv_cxx_compiler_gnu+y}
  12212. then :
  12213. printf %s "(cached) " >&6
  12214. else $as_nop
  12215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12216. /* end confdefs.h. */
  12217. int
  12218. main (void)
  12219. {
  12220. #ifndef __GNUC__
  12221. choke me
  12222. #endif
  12223. ;
  12224. return 0;
  12225. }
  12226. _ACEOF
  12227. if ac_fn_cxx_try_compile "$LINENO"
  12228. then :
  12229. ac_compiler_gnu=yes
  12230. else $as_nop
  12231. ac_compiler_gnu=no
  12232. fi
  12233. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12234. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  12235. fi
  12236. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  12237. printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
  12238. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12239. if test $ac_compiler_gnu = yes; then
  12240. GXX=yes
  12241. else
  12242. GXX=
  12243. fi
  12244. ac_test_CXXFLAGS=${CXXFLAGS+y}
  12245. ac_save_CXXFLAGS=$CXXFLAGS
  12246. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  12247. printf %s "checking whether $CXX accepts -g... " >&6; }
  12248. if test ${ac_cv_prog_cxx_g+y}
  12249. then :
  12250. printf %s "(cached) " >&6
  12251. else $as_nop
  12252. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  12253. ac_cxx_werror_flag=yes
  12254. ac_cv_prog_cxx_g=no
  12255. CXXFLAGS="-g"
  12256. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12257. /* end confdefs.h. */
  12258. int
  12259. main (void)
  12260. {
  12261. ;
  12262. return 0;
  12263. }
  12264. _ACEOF
  12265. if ac_fn_cxx_try_compile "$LINENO"
  12266. then :
  12267. ac_cv_prog_cxx_g=yes
  12268. else $as_nop
  12269. CXXFLAGS=""
  12270. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12271. /* end confdefs.h. */
  12272. int
  12273. main (void)
  12274. {
  12275. ;
  12276. return 0;
  12277. }
  12278. _ACEOF
  12279. if ac_fn_cxx_try_compile "$LINENO"
  12280. then :
  12281. else $as_nop
  12282. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12283. CXXFLAGS="-g"
  12284. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12285. /* end confdefs.h. */
  12286. int
  12287. main (void)
  12288. {
  12289. ;
  12290. return 0;
  12291. }
  12292. _ACEOF
  12293. if ac_fn_cxx_try_compile "$LINENO"
  12294. then :
  12295. ac_cv_prog_cxx_g=yes
  12296. fi
  12297. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12298. fi
  12299. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12300. fi
  12301. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12302. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12303. fi
  12304. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  12305. printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
  12306. if test $ac_test_CXXFLAGS; then
  12307. CXXFLAGS=$ac_save_CXXFLAGS
  12308. elif test $ac_cv_prog_cxx_g = yes; then
  12309. if test "$GXX" = yes; then
  12310. CXXFLAGS="-g -O2"
  12311. else
  12312. CXXFLAGS="-g"
  12313. fi
  12314. else
  12315. if test "$GXX" = yes; then
  12316. CXXFLAGS="-O2"
  12317. else
  12318. CXXFLAGS=
  12319. fi
  12320. fi
  12321. ac_prog_cxx_stdcxx=no
  12322. if test x$ac_prog_cxx_stdcxx = xno
  12323. then :
  12324. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
  12325. printf %s "checking for $CXX option to enable C++11 features... " >&6; }
  12326. if test ${ac_cv_prog_cxx_11+y}
  12327. then :
  12328. printf %s "(cached) " >&6
  12329. else $as_nop
  12330. ac_cv_prog_cxx_11=no
  12331. ac_save_CXX=$CXX
  12332. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12333. /* end confdefs.h. */
  12334. $ac_cxx_conftest_cxx11_program
  12335. _ACEOF
  12336. for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
  12337. do
  12338. CXX="$ac_save_CXX $ac_arg"
  12339. if ac_fn_cxx_try_compile "$LINENO"
  12340. then :
  12341. ac_cv_prog_cxx_cxx11=$ac_arg
  12342. fi
  12343. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12344. test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
  12345. done
  12346. rm -f conftest.$ac_ext
  12347. CXX=$ac_save_CXX
  12348. fi
  12349. if test "x$ac_cv_prog_cxx_cxx11" = xno
  12350. then :
  12351. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12352. printf "%s\n" "unsupported" >&6; }
  12353. else $as_nop
  12354. if test "x$ac_cv_prog_cxx_cxx11" = x
  12355. then :
  12356. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12357. printf "%s\n" "none needed" >&6; }
  12358. else $as_nop
  12359. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
  12360. printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
  12361. CXX="$CXX $ac_cv_prog_cxx_cxx11"
  12362. fi
  12363. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
  12364. ac_prog_cxx_stdcxx=cxx11
  12365. fi
  12366. fi
  12367. if test x$ac_prog_cxx_stdcxx = xno
  12368. then :
  12369. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
  12370. printf %s "checking for $CXX option to enable C++98 features... " >&6; }
  12371. if test ${ac_cv_prog_cxx_98+y}
  12372. then :
  12373. printf %s "(cached) " >&6
  12374. else $as_nop
  12375. ac_cv_prog_cxx_98=no
  12376. ac_save_CXX=$CXX
  12377. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12378. /* end confdefs.h. */
  12379. $ac_cxx_conftest_cxx98_program
  12380. _ACEOF
  12381. for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
  12382. do
  12383. CXX="$ac_save_CXX $ac_arg"
  12384. if ac_fn_cxx_try_compile "$LINENO"
  12385. then :
  12386. ac_cv_prog_cxx_cxx98=$ac_arg
  12387. fi
  12388. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12389. test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
  12390. done
  12391. rm -f conftest.$ac_ext
  12392. CXX=$ac_save_CXX
  12393. fi
  12394. if test "x$ac_cv_prog_cxx_cxx98" = xno
  12395. then :
  12396. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12397. printf "%s\n" "unsupported" >&6; }
  12398. else $as_nop
  12399. if test "x$ac_cv_prog_cxx_cxx98" = x
  12400. then :
  12401. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12402. printf "%s\n" "none needed" >&6; }
  12403. else $as_nop
  12404. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
  12405. printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
  12406. CXX="$CXX $ac_cv_prog_cxx_cxx98"
  12407. fi
  12408. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
  12409. ac_prog_cxx_stdcxx=cxx98
  12410. fi
  12411. fi
  12412. ac_ext=c
  12413. ac_cpp='$CPP $CPPFLAGS'
  12414. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12415. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12416. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12417. func_stripname_cnf ()
  12418. {
  12419. case $2 in
  12420. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  12421. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  12422. esac
  12423. } # func_stripname_cnf
  12424. if test -n "$CXX" && ( test no != "$CXX" &&
  12425. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  12426. (test g++ != "$CXX"))); then
  12427. ac_ext=cpp
  12428. ac_cpp='$CXXCPP $CPPFLAGS'
  12429. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12430. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12431. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12432. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  12433. printf %s "checking how to run the C++ preprocessor... " >&6; }
  12434. if test -z "$CXXCPP"; then
  12435. if test ${ac_cv_prog_CXXCPP+y}
  12436. then :
  12437. printf %s "(cached) " >&6
  12438. else $as_nop
  12439. # Double quotes because $CXX needs to be expanded
  12440. for CXXCPP in "$CXX -E" cpp /lib/cpp
  12441. do
  12442. ac_preproc_ok=false
  12443. for ac_cxx_preproc_warn_flag in '' yes
  12444. do
  12445. # Use a header file that comes with gcc, so configuring glibc
  12446. # with a fresh cross-compiler works.
  12447. # On the NeXT, cc -E runs the code through the compiler's parser,
  12448. # not just through cpp. "Syntax error" is here to catch this case.
  12449. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12450. /* end confdefs.h. */
  12451. #include <limits.h>
  12452. Syntax error
  12453. _ACEOF
  12454. if ac_fn_cxx_try_cpp "$LINENO"
  12455. then :
  12456. else $as_nop
  12457. # Broken: fails on valid input.
  12458. continue
  12459. fi
  12460. rm -f conftest.err conftest.i conftest.$ac_ext
  12461. # OK, works on sane cases. Now check whether nonexistent headers
  12462. # can be detected and how.
  12463. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12464. /* end confdefs.h. */
  12465. #include <ac_nonexistent.h>
  12466. _ACEOF
  12467. if ac_fn_cxx_try_cpp "$LINENO"
  12468. then :
  12469. # Broken: success on invalid input.
  12470. continue
  12471. else $as_nop
  12472. # Passes both tests.
  12473. ac_preproc_ok=:
  12474. break
  12475. fi
  12476. rm -f conftest.err conftest.i conftest.$ac_ext
  12477. done
  12478. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12479. rm -f conftest.i conftest.err conftest.$ac_ext
  12480. if $ac_preproc_ok
  12481. then :
  12482. break
  12483. fi
  12484. done
  12485. ac_cv_prog_CXXCPP=$CXXCPP
  12486. fi
  12487. CXXCPP=$ac_cv_prog_CXXCPP
  12488. else
  12489. ac_cv_prog_CXXCPP=$CXXCPP
  12490. fi
  12491. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  12492. printf "%s\n" "$CXXCPP" >&6; }
  12493. ac_preproc_ok=false
  12494. for ac_cxx_preproc_warn_flag in '' yes
  12495. do
  12496. # Use a header file that comes with gcc, so configuring glibc
  12497. # with a fresh cross-compiler works.
  12498. # On the NeXT, cc -E runs the code through the compiler's parser,
  12499. # not just through cpp. "Syntax error" is here to catch this case.
  12500. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12501. /* end confdefs.h. */
  12502. #include <limits.h>
  12503. Syntax error
  12504. _ACEOF
  12505. if ac_fn_cxx_try_cpp "$LINENO"
  12506. then :
  12507. else $as_nop
  12508. # Broken: fails on valid input.
  12509. continue
  12510. fi
  12511. rm -f conftest.err conftest.i conftest.$ac_ext
  12512. # OK, works on sane cases. Now check whether nonexistent headers
  12513. # can be detected and how.
  12514. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12515. /* end confdefs.h. */
  12516. #include <ac_nonexistent.h>
  12517. _ACEOF
  12518. if ac_fn_cxx_try_cpp "$LINENO"
  12519. then :
  12520. # Broken: success on invalid input.
  12521. continue
  12522. else $as_nop
  12523. # Passes both tests.
  12524. ac_preproc_ok=:
  12525. break
  12526. fi
  12527. rm -f conftest.err conftest.i conftest.$ac_ext
  12528. done
  12529. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12530. rm -f conftest.i conftest.err conftest.$ac_ext
  12531. if $ac_preproc_ok
  12532. then :
  12533. else $as_nop
  12534. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12535. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  12536. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  12537. See \`config.log' for more details" "$LINENO" 5; }
  12538. fi
  12539. ac_ext=c
  12540. ac_cpp='$CPP $CPPFLAGS'
  12541. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12542. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12543. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12544. else
  12545. _lt_caught_CXX_error=yes
  12546. fi
  12547. ac_ext=cpp
  12548. ac_cpp='$CXXCPP $CPPFLAGS'
  12549. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12550. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12551. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12552. archive_cmds_need_lc_CXX=no
  12553. allow_undefined_flag_CXX=
  12554. always_export_symbols_CXX=no
  12555. archive_expsym_cmds_CXX=
  12556. compiler_needs_object_CXX=no
  12557. export_dynamic_flag_spec_CXX=
  12558. hardcode_direct_CXX=no
  12559. hardcode_direct_absolute_CXX=no
  12560. hardcode_libdir_flag_spec_CXX=
  12561. hardcode_libdir_separator_CXX=
  12562. hardcode_minus_L_CXX=no
  12563. hardcode_shlibpath_var_CXX=unsupported
  12564. hardcode_automatic_CXX=no
  12565. inherit_rpath_CXX=no
  12566. module_cmds_CXX=
  12567. module_expsym_cmds_CXX=
  12568. link_all_deplibs_CXX=unknown
  12569. old_archive_cmds_CXX=$old_archive_cmds
  12570. reload_flag_CXX=$reload_flag
  12571. reload_cmds_CXX=$reload_cmds
  12572. no_undefined_flag_CXX=
  12573. whole_archive_flag_spec_CXX=
  12574. enable_shared_with_static_runtimes_CXX=no
  12575. # Source file extension for C++ test sources.
  12576. ac_ext=cpp
  12577. # Object file extension for compiled C++ test sources.
  12578. objext=o
  12579. objext_CXX=$objext
  12580. # No sense in running all these tests if we already determined that
  12581. # the CXX compiler isn't working. Some variables (like enable_shared)
  12582. # are currently assumed to apply to all compilers on this platform,
  12583. # and will be corrupted by setting them based on a non-working compiler.
  12584. if test yes != "$_lt_caught_CXX_error"; then
  12585. # Code to be used in simple compile tests
  12586. lt_simple_compile_test_code="int some_variable = 0;"
  12587. # Code to be used in simple link tests
  12588. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  12589. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12590. # If no C compiler was specified, use CC.
  12591. LTCC=${LTCC-"$CC"}
  12592. # If no C compiler flags were specified, use CFLAGS.
  12593. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12594. # Allow CC to be a program name with arguments.
  12595. compiler=$CC
  12596. # save warnings/boilerplate of simple test code
  12597. ac_outfile=conftest.$ac_objext
  12598. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12599. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12600. _lt_compiler_boilerplate=`cat conftest.err`
  12601. $RM conftest*
  12602. ac_outfile=conftest.$ac_objext
  12603. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12604. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12605. _lt_linker_boilerplate=`cat conftest.err`
  12606. $RM -r conftest*
  12607. # Allow CC to be a program name with arguments.
  12608. lt_save_CC=$CC
  12609. lt_save_CFLAGS=$CFLAGS
  12610. lt_save_LD=$LD
  12611. lt_save_GCC=$GCC
  12612. GCC=$GXX
  12613. lt_save_with_gnu_ld=$with_gnu_ld
  12614. lt_save_path_LD=$lt_cv_path_LD
  12615. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  12616. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  12617. else
  12618. $as_unset lt_cv_prog_gnu_ld
  12619. fi
  12620. if test -n "${lt_cv_path_LDCXX+set}"; then
  12621. lt_cv_path_LD=$lt_cv_path_LDCXX
  12622. else
  12623. $as_unset lt_cv_path_LD
  12624. fi
  12625. test -z "${LDCXX+set}" || LD=$LDCXX
  12626. CC=${CXX-"c++"}
  12627. CFLAGS=$CXXFLAGS
  12628. compiler=$CC
  12629. compiler_CXX=$CC
  12630. func_cc_basename $compiler
  12631. cc_basename=$func_cc_basename_result
  12632. if test -n "$compiler"; then
  12633. # We don't want -fno-exception when compiling C++ code, so set the
  12634. # no_builtin_flag separately
  12635. if test yes = "$GXX"; then
  12636. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  12637. else
  12638. lt_prog_compiler_no_builtin_flag_CXX=
  12639. fi
  12640. if test yes = "$GXX"; then
  12641. # Set up default GNU C++ configuration
  12642. # Check whether --with-gnu-ld was given.
  12643. if test ${with_gnu_ld+y}
  12644. then :
  12645. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  12646. else $as_nop
  12647. with_gnu_ld=no
  12648. fi
  12649. ac_prog=ld
  12650. if test yes = "$GCC"; then
  12651. # Check if gcc -print-prog-name=ld gives a path.
  12652. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  12653. printf %s "checking for ld used by $CC... " >&6; }
  12654. case $host in
  12655. *-*-mingw*)
  12656. # gcc leaves a trailing carriage return, which upsets mingw
  12657. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  12658. *)
  12659. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  12660. esac
  12661. case $ac_prog in
  12662. # Accept absolute paths.
  12663. [\\/]* | ?:[\\/]*)
  12664. re_direlt='/[^/][^/]*/\.\./'
  12665. # Canonicalize the pathname of ld
  12666. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  12667. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  12668. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  12669. done
  12670. test -z "$LD" && LD=$ac_prog
  12671. ;;
  12672. "")
  12673. # If it fails, then pretend we aren't using GCC.
  12674. ac_prog=ld
  12675. ;;
  12676. *)
  12677. # If it is relative, then search for the first ld in PATH.
  12678. with_gnu_ld=unknown
  12679. ;;
  12680. esac
  12681. elif test yes = "$with_gnu_ld"; then
  12682. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  12683. printf %s "checking for GNU ld... " >&6; }
  12684. else
  12685. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  12686. printf %s "checking for non-GNU ld... " >&6; }
  12687. fi
  12688. if test ${lt_cv_path_LD+y}
  12689. then :
  12690. printf %s "(cached) " >&6
  12691. else $as_nop
  12692. if test -z "$LD"; then
  12693. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  12694. for ac_dir in $PATH; do
  12695. IFS=$lt_save_ifs
  12696. test -z "$ac_dir" && ac_dir=.
  12697. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  12698. lt_cv_path_LD=$ac_dir/$ac_prog
  12699. # Check to see if the program is GNU ld. I'd rather use --version,
  12700. # but apparently some variants of GNU ld only accept -v.
  12701. # Break only if it was the GNU/non-GNU ld that we prefer.
  12702. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  12703. *GNU* | *'with BFD'*)
  12704. test no != "$with_gnu_ld" && break
  12705. ;;
  12706. *)
  12707. test yes != "$with_gnu_ld" && break
  12708. ;;
  12709. esac
  12710. fi
  12711. done
  12712. IFS=$lt_save_ifs
  12713. else
  12714. lt_cv_path_LD=$LD # Let the user override the test with a path.
  12715. fi
  12716. fi
  12717. LD=$lt_cv_path_LD
  12718. if test -n "$LD"; then
  12719. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  12720. printf "%s\n" "$LD" >&6; }
  12721. else
  12722. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12723. printf "%s\n" "no" >&6; }
  12724. fi
  12725. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  12726. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  12727. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  12728. if test ${lt_cv_prog_gnu_ld+y}
  12729. then :
  12730. printf %s "(cached) " >&6
  12731. else $as_nop
  12732. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  12733. case `$LD -v 2>&1 </dev/null` in
  12734. *GNU* | *'with BFD'*)
  12735. lt_cv_prog_gnu_ld=yes
  12736. ;;
  12737. *)
  12738. lt_cv_prog_gnu_ld=no
  12739. ;;
  12740. esac
  12741. fi
  12742. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  12743. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  12744. with_gnu_ld=$lt_cv_prog_gnu_ld
  12745. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  12746. # archiving commands below assume that GNU ld is being used.
  12747. if test yes = "$with_gnu_ld"; then
  12748. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12749. archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  12750. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12751. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12752. # If archive_cmds runs LD, not CC, wlarc should be empty
  12753. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  12754. # investigate it a little bit more. (MM)
  12755. wlarc='$wl'
  12756. # ancient GNU ld didn't support --whole-archive et. al.
  12757. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  12758. $GREP 'no-whole-archive' > /dev/null; then
  12759. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12760. else
  12761. whole_archive_flag_spec_CXX=
  12762. fi
  12763. else
  12764. with_gnu_ld=no
  12765. wlarc=
  12766. # A generic and very simple default shared library creation
  12767. # command for GNU C++ for the case where it uses the native
  12768. # linker, instead of GNU ld. If possible, this setting should
  12769. # overridden to take advantage of the native linker features on
  12770. # the platform it is being used on.
  12771. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12772. fi
  12773. # Commands to make compiler produce verbose output that lists
  12774. # what "hidden" libraries, object files and flags are used when
  12775. # linking a shared library.
  12776. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12777. else
  12778. GXX=no
  12779. with_gnu_ld=no
  12780. wlarc=
  12781. fi
  12782. # PORTME: fill in a description of your system's C++ link characteristics
  12783. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12784. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12785. ld_shlibs_CXX=yes
  12786. case $host_os in
  12787. aix3*)
  12788. # FIXME: insert proper C++ library support
  12789. ld_shlibs_CXX=no
  12790. ;;
  12791. aix[4-9]*)
  12792. if test ia64 = "$host_cpu"; then
  12793. # On IA64, the linker does run time linking by default, so we don't
  12794. # have to do anything special.
  12795. aix_use_runtimelinking=no
  12796. exp_sym_flag='-Bexport'
  12797. no_entry_flag=
  12798. else
  12799. aix_use_runtimelinking=no
  12800. # Test if we are trying to use run time linking or normal
  12801. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12802. # have runtime linking enabled, and use it for executables.
  12803. # For shared libraries, we enable/disable runtime linking
  12804. # depending on the kind of the shared library created -
  12805. # when "with_aix_soname,aix_use_runtimelinking" is:
  12806. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  12807. # "aix,yes" lib.so shared, rtl:yes, for executables
  12808. # lib.a static archive
  12809. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  12810. # lib.a(lib.so.V) shared, rtl:no, for executables
  12811. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  12812. # lib.a(lib.so.V) shared, rtl:no
  12813. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  12814. # lib.a static archive
  12815. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  12816. for ld_flag in $LDFLAGS; do
  12817. case $ld_flag in
  12818. *-brtl*)
  12819. aix_use_runtimelinking=yes
  12820. break
  12821. ;;
  12822. esac
  12823. done
  12824. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  12825. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  12826. # so we don't have lib.a shared libs to link our executables.
  12827. # We have to force runtime linking in this case.
  12828. aix_use_runtimelinking=yes
  12829. LDFLAGS="$LDFLAGS -Wl,-brtl"
  12830. fi
  12831. ;;
  12832. esac
  12833. exp_sym_flag='-bexport'
  12834. no_entry_flag='-bnoentry'
  12835. fi
  12836. # When large executables or shared objects are built, AIX ld can
  12837. # have problems creating the table of contents. If linking a library
  12838. # or program results in "error TOC overflow" add -mminimal-toc to
  12839. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12840. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12841. archive_cmds_CXX=''
  12842. hardcode_direct_CXX=yes
  12843. hardcode_direct_absolute_CXX=yes
  12844. hardcode_libdir_separator_CXX=':'
  12845. link_all_deplibs_CXX=yes
  12846. file_list_spec_CXX='$wl-f,'
  12847. case $with_aix_soname,$aix_use_runtimelinking in
  12848. aix,*) ;; # no import file
  12849. svr4,* | *,yes) # use import file
  12850. # The Import File defines what to hardcode.
  12851. hardcode_direct_CXX=no
  12852. hardcode_direct_absolute_CXX=no
  12853. ;;
  12854. esac
  12855. if test yes = "$GXX"; then
  12856. case $host_os in aix4.[012]|aix4.[012].*)
  12857. # We only want to do this on AIX 4.2 and lower, the check
  12858. # below for broken collect2 doesn't work under 4.3+
  12859. collect2name=`$CC -print-prog-name=collect2`
  12860. if test -f "$collect2name" &&
  12861. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  12862. then
  12863. # We have reworked collect2
  12864. :
  12865. else
  12866. # We have old collect2
  12867. hardcode_direct_CXX=unsupported
  12868. # It fails to find uninstalled libraries when the uninstalled
  12869. # path is not listed in the libpath. Setting hardcode_minus_L
  12870. # to unsupported forces relinking
  12871. hardcode_minus_L_CXX=yes
  12872. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12873. hardcode_libdir_separator_CXX=
  12874. fi
  12875. esac
  12876. shared_flag='-shared'
  12877. if test yes = "$aix_use_runtimelinking"; then
  12878. shared_flag=$shared_flag' $wl-G'
  12879. fi
  12880. # Need to ensure runtime linking is disabled for the traditional
  12881. # shared library, or the linker may eventually find shared libraries
  12882. # /with/ Import File - we do not want to mix them.
  12883. shared_flag_aix='-shared'
  12884. shared_flag_svr4='-shared $wl-G'
  12885. else
  12886. # not using gcc
  12887. if test ia64 = "$host_cpu"; then
  12888. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12889. # chokes on -Wl,-G. The following line is correct:
  12890. shared_flag='-G'
  12891. else
  12892. if test yes = "$aix_use_runtimelinking"; then
  12893. shared_flag='$wl-G'
  12894. else
  12895. shared_flag='$wl-bM:SRE'
  12896. fi
  12897. shared_flag_aix='$wl-bM:SRE'
  12898. shared_flag_svr4='$wl-G'
  12899. fi
  12900. fi
  12901. export_dynamic_flag_spec_CXX='$wl-bexpall'
  12902. # It seems that -bexpall does not export symbols beginning with
  12903. # underscore (_), so it is better to generate a list of symbols to
  12904. # export.
  12905. always_export_symbols_CXX=yes
  12906. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  12907. # Warning - without using the other runtime loading flags (-brtl),
  12908. # -berok will link without error, but may produce a broken library.
  12909. # The "-G" linker flag allows undefined symbols.
  12910. no_undefined_flag_CXX='-bernotok'
  12911. # Determine the default libpath from the value encoded in an empty
  12912. # executable.
  12913. if test set = "${lt_cv_aix_libpath+set}"; then
  12914. aix_libpath=$lt_cv_aix_libpath
  12915. else
  12916. if test ${lt_cv_aix_libpath__CXX+y}
  12917. then :
  12918. printf %s "(cached) " >&6
  12919. else $as_nop
  12920. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12921. /* end confdefs.h. */
  12922. int
  12923. main (void)
  12924. {
  12925. ;
  12926. return 0;
  12927. }
  12928. _ACEOF
  12929. if ac_fn_cxx_try_link "$LINENO"
  12930. then :
  12931. lt_aix_libpath_sed='
  12932. /Import File Strings/,/^$/ {
  12933. /^0/ {
  12934. s/^0 *\([^ ]*\) *$/\1/
  12935. p
  12936. }
  12937. }'
  12938. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12939. # Check for a 64-bit object if we didn't find anything.
  12940. if test -z "$lt_cv_aix_libpath__CXX"; then
  12941. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12942. fi
  12943. fi
  12944. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12945. conftest$ac_exeext conftest.$ac_ext
  12946. if test -z "$lt_cv_aix_libpath__CXX"; then
  12947. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12948. fi
  12949. fi
  12950. aix_libpath=$lt_cv_aix_libpath__CXX
  12951. fi
  12952. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12953. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  12954. else
  12955. if test ia64 = "$host_cpu"; then
  12956. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  12957. allow_undefined_flag_CXX="-z nodefs"
  12958. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
  12959. else
  12960. # Determine the default libpath from the value encoded in an
  12961. # empty executable.
  12962. if test set = "${lt_cv_aix_libpath+set}"; then
  12963. aix_libpath=$lt_cv_aix_libpath
  12964. else
  12965. if test ${lt_cv_aix_libpath__CXX+y}
  12966. then :
  12967. printf %s "(cached) " >&6
  12968. else $as_nop
  12969. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12970. /* end confdefs.h. */
  12971. int
  12972. main (void)
  12973. {
  12974. ;
  12975. return 0;
  12976. }
  12977. _ACEOF
  12978. if ac_fn_cxx_try_link "$LINENO"
  12979. then :
  12980. lt_aix_libpath_sed='
  12981. /Import File Strings/,/^$/ {
  12982. /^0/ {
  12983. s/^0 *\([^ ]*\) *$/\1/
  12984. p
  12985. }
  12986. }'
  12987. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12988. # Check for a 64-bit object if we didn't find anything.
  12989. if test -z "$lt_cv_aix_libpath__CXX"; then
  12990. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12991. fi
  12992. fi
  12993. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12994. conftest$ac_exeext conftest.$ac_ext
  12995. if test -z "$lt_cv_aix_libpath__CXX"; then
  12996. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12997. fi
  12998. fi
  12999. aix_libpath=$lt_cv_aix_libpath__CXX
  13000. fi
  13001. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  13002. # Warning - without using the other run time loading flags,
  13003. # -berok will link without error, but may produce a broken library.
  13004. no_undefined_flag_CXX=' $wl-bernotok'
  13005. allow_undefined_flag_CXX=' $wl-berok'
  13006. if test yes = "$with_gnu_ld"; then
  13007. # We only use this code for GNU lds that support --whole-archive.
  13008. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  13009. else
  13010. # Exported symbols can be pulled into shared objects from archives
  13011. whole_archive_flag_spec_CXX='$convenience'
  13012. fi
  13013. archive_cmds_need_lc_CXX=yes
  13014. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  13015. # -brtl affects multiple linker settings, -berok does not and is overridden later
  13016. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  13017. if test svr4 != "$with_aix_soname"; then
  13018. # This is similar to how AIX traditionally builds its shared
  13019. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  13020. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  13021. fi
  13022. if test aix != "$with_aix_soname"; then
  13023. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  13024. else
  13025. # used by -dlpreopen to get the symbols
  13026. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  13027. fi
  13028. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  13029. fi
  13030. fi
  13031. ;;
  13032. beos*)
  13033. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  13034. allow_undefined_flag_CXX=unsupported
  13035. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  13036. # support --undefined. This deserves some investigation. FIXME
  13037. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13038. else
  13039. ld_shlibs_CXX=no
  13040. fi
  13041. ;;
  13042. chorus*)
  13043. case $cc_basename in
  13044. *)
  13045. # FIXME: insert proper C++ library support
  13046. ld_shlibs_CXX=no
  13047. ;;
  13048. esac
  13049. ;;
  13050. cygwin* | mingw* | pw32* | cegcc*)
  13051. case $GXX,$cc_basename in
  13052. ,cl* | no,cl*)
  13053. # Native MSVC
  13054. # hardcode_libdir_flag_spec is actually meaningless, as there is
  13055. # no search path for DLLs.
  13056. hardcode_libdir_flag_spec_CXX=' '
  13057. allow_undefined_flag_CXX=unsupported
  13058. always_export_symbols_CXX=yes
  13059. file_list_spec_CXX='@'
  13060. # Tell ltmain to make .lib files, not .a files.
  13061. libext=lib
  13062. # Tell ltmain to make .dll files, not .so files.
  13063. shrext_cmds=.dll
  13064. # FIXME: Setting linknames here is a bad hack.
  13065. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  13066. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13067. cp "$export_symbols" "$output_objdir/$soname.def";
  13068. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  13069. else
  13070. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  13071. fi~
  13072. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  13073. linknames='
  13074. # The linker will not automatically build a static lib if we build a DLL.
  13075. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  13076. enable_shared_with_static_runtimes_CXX=yes
  13077. # Don't use ranlib
  13078. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  13079. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  13080. lt_tool_outputfile="@TOOL_OUTPUT@"~
  13081. case $lt_outputfile in
  13082. *.exe|*.EXE) ;;
  13083. *)
  13084. lt_outputfile=$lt_outputfile.exe
  13085. lt_tool_outputfile=$lt_tool_outputfile.exe
  13086. ;;
  13087. esac~
  13088. func_to_tool_file "$lt_outputfile"~
  13089. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  13090. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  13091. $RM "$lt_outputfile.manifest";
  13092. fi'
  13093. ;;
  13094. *)
  13095. # g++
  13096. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  13097. # as there is no search path for DLLs.
  13098. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13099. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  13100. allow_undefined_flag_CXX=unsupported
  13101. always_export_symbols_CXX=no
  13102. enable_shared_with_static_runtimes_CXX=yes
  13103. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  13104. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  13105. # If the export-symbols file already is a .def file, use it as
  13106. # is; otherwise, prepend EXPORTS...
  13107. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13108. cp $export_symbols $output_objdir/$soname.def;
  13109. else
  13110. echo EXPORTS > $output_objdir/$soname.def;
  13111. cat $export_symbols >> $output_objdir/$soname.def;
  13112. fi~
  13113. $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  13114. else
  13115. ld_shlibs_CXX=no
  13116. fi
  13117. ;;
  13118. esac
  13119. ;;
  13120. darwin* | rhapsody*)
  13121. archive_cmds_need_lc_CXX=no
  13122. hardcode_direct_CXX=no
  13123. hardcode_automatic_CXX=yes
  13124. hardcode_shlibpath_var_CXX=unsupported
  13125. if test yes = "$lt_cv_ld_force_load"; then
  13126. whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  13127. else
  13128. whole_archive_flag_spec_CXX=''
  13129. fi
  13130. link_all_deplibs_CXX=yes
  13131. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  13132. case $cc_basename in
  13133. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  13134. *) _lt_dar_can_shared=$GCC ;;
  13135. esac
  13136. if test yes = "$_lt_dar_can_shared"; then
  13137. output_verbose_link_cmd=func_echo_all
  13138. archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  13139. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  13140. archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
  13141. module_expsym_cmds_CXX="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
  13142. if test yes != "$lt_cv_apple_cc_single_mod"; then
  13143. archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
  13144. archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
  13145. fi
  13146. else
  13147. ld_shlibs_CXX=no
  13148. fi
  13149. ;;
  13150. os2*)
  13151. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13152. hardcode_minus_L_CXX=yes
  13153. allow_undefined_flag_CXX=unsupported
  13154. shrext_cmds=.dll
  13155. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13156. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13157. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13158. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13159. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  13160. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13161. emximp -o $lib $output_objdir/$libname.def'
  13162. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13163. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13164. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13165. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13166. prefix_cmds="$SED"~
  13167. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  13168. prefix_cmds="$prefix_cmds -e 1d";
  13169. fi~
  13170. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  13171. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  13172. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13173. emximp -o $lib $output_objdir/$libname.def'
  13174. old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  13175. enable_shared_with_static_runtimes_CXX=yes
  13176. file_list_spec_CXX='@'
  13177. ;;
  13178. dgux*)
  13179. case $cc_basename in
  13180. ec++*)
  13181. # FIXME: insert proper C++ library support
  13182. ld_shlibs_CXX=no
  13183. ;;
  13184. ghcx*)
  13185. # Green Hills C++ Compiler
  13186. # FIXME: insert proper C++ library support
  13187. ld_shlibs_CXX=no
  13188. ;;
  13189. *)
  13190. # FIXME: insert proper C++ library support
  13191. ld_shlibs_CXX=no
  13192. ;;
  13193. esac
  13194. ;;
  13195. freebsd2.*)
  13196. # C++ shared libraries reported to be fairly broken before
  13197. # switch to ELF
  13198. ld_shlibs_CXX=no
  13199. ;;
  13200. freebsd-elf*)
  13201. archive_cmds_need_lc_CXX=no
  13202. ;;
  13203. freebsd* | dragonfly* | midnightbsd*)
  13204. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  13205. # conventions
  13206. ld_shlibs_CXX=yes
  13207. ;;
  13208. haiku*)
  13209. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13210. link_all_deplibs_CXX=yes
  13211. ;;
  13212. hpux9*)
  13213. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13214. hardcode_libdir_separator_CXX=:
  13215. export_dynamic_flag_spec_CXX='$wl-E'
  13216. hardcode_direct_CXX=yes
  13217. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13218. # but as the default
  13219. # location of the library.
  13220. case $cc_basename in
  13221. CC*)
  13222. # FIXME: insert proper C++ library support
  13223. ld_shlibs_CXX=no
  13224. ;;
  13225. aCC*)
  13226. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  13227. # Commands to make compiler produce verbose output that lists
  13228. # what "hidden" libraries, object files and flags are used when
  13229. # linking a shared library.
  13230. #
  13231. # There doesn't appear to be a way to prevent this compiler from
  13232. # explicitly linking system object files so we need to strip them
  13233. # from the output so that they don't get included in the library
  13234. # dependencies.
  13235. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  13236. ;;
  13237. *)
  13238. if test yes = "$GXX"; then
  13239. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  13240. else
  13241. # FIXME: insert proper C++ library support
  13242. ld_shlibs_CXX=no
  13243. fi
  13244. ;;
  13245. esac
  13246. ;;
  13247. hpux10*|hpux11*)
  13248. if test no = "$with_gnu_ld"; then
  13249. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13250. hardcode_libdir_separator_CXX=:
  13251. case $host_cpu in
  13252. hppa*64*|ia64*)
  13253. ;;
  13254. *)
  13255. export_dynamic_flag_spec_CXX='$wl-E'
  13256. ;;
  13257. esac
  13258. fi
  13259. case $host_cpu in
  13260. hppa*64*|ia64*)
  13261. hardcode_direct_CXX=no
  13262. hardcode_shlibpath_var_CXX=no
  13263. ;;
  13264. *)
  13265. hardcode_direct_CXX=yes
  13266. hardcode_direct_absolute_CXX=yes
  13267. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13268. # but as the default
  13269. # location of the library.
  13270. ;;
  13271. esac
  13272. case $cc_basename in
  13273. CC*)
  13274. # FIXME: insert proper C++ library support
  13275. ld_shlibs_CXX=no
  13276. ;;
  13277. aCC*)
  13278. case $host_cpu in
  13279. hppa*64*)
  13280. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13281. ;;
  13282. ia64*)
  13283. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13284. ;;
  13285. *)
  13286. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13287. ;;
  13288. esac
  13289. # Commands to make compiler produce verbose output that lists
  13290. # what "hidden" libraries, object files and flags are used when
  13291. # linking a shared library.
  13292. #
  13293. # There doesn't appear to be a way to prevent this compiler from
  13294. # explicitly linking system object files so we need to strip them
  13295. # from the output so that they don't get included in the library
  13296. # dependencies.
  13297. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  13298. ;;
  13299. *)
  13300. if test yes = "$GXX"; then
  13301. if test no = "$with_gnu_ld"; then
  13302. case $host_cpu in
  13303. hppa*64*)
  13304. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13305. ;;
  13306. ia64*)
  13307. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13308. ;;
  13309. *)
  13310. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13311. ;;
  13312. esac
  13313. fi
  13314. else
  13315. # FIXME: insert proper C++ library support
  13316. ld_shlibs_CXX=no
  13317. fi
  13318. ;;
  13319. esac
  13320. ;;
  13321. interix[3-9]*)
  13322. hardcode_direct_CXX=no
  13323. hardcode_shlibpath_var_CXX=no
  13324. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13325. export_dynamic_flag_spec_CXX='$wl-E'
  13326. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13327. # Instead, shared libraries are loaded at an image base (0x10000000 by
  13328. # default) and relocated if they conflict, which is a slow very memory
  13329. # consuming and fragmenting process. To avoid this, we pick a random,
  13330. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13331. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  13332. archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  13333. archive_expsym_cmds_CXX='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  13334. ;;
  13335. irix5* | irix6*)
  13336. case $cc_basename in
  13337. CC*)
  13338. # SGI C++
  13339. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  13340. # Archives containing C++ object files must be created using
  13341. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  13342. # necessary to make sure instantiated templates are included
  13343. # in the archive.
  13344. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  13345. ;;
  13346. *)
  13347. if test yes = "$GXX"; then
  13348. if test no = "$with_gnu_ld"; then
  13349. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  13350. else
  13351. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
  13352. fi
  13353. fi
  13354. link_all_deplibs_CXX=yes
  13355. ;;
  13356. esac
  13357. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13358. hardcode_libdir_separator_CXX=:
  13359. inherit_rpath_CXX=yes
  13360. ;;
  13361. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13362. case $cc_basename in
  13363. KCC*)
  13364. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13365. # KCC will only create a shared library if the output file
  13366. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13367. # to its proper name (with version) after linking.
  13368. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  13369. archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
  13370. # Commands to make compiler produce verbose output that lists
  13371. # what "hidden" libraries, object files and flags are used when
  13372. # linking a shared library.
  13373. #
  13374. # There doesn't appear to be a way to prevent this compiler from
  13375. # explicitly linking system object files so we need to strip them
  13376. # from the output so that they don't get included in the library
  13377. # dependencies.
  13378. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  13379. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13380. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13381. # Archives containing C++ object files must be created using
  13382. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  13383. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  13384. ;;
  13385. icpc* | ecpc* )
  13386. # Intel C++
  13387. with_gnu_ld=yes
  13388. # version 8.0 and above of icpc choke on multiply defined symbols
  13389. # if we add $predep_objects and $postdep_objects, however 7.1 and
  13390. # earlier do not add the objects themselves.
  13391. case `$CC -V 2>&1` in
  13392. *"Version 7."*)
  13393. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13394. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  13395. ;;
  13396. *) # Version 8.0 or newer
  13397. tmp_idyn=
  13398. case $host_cpu in
  13399. ia64*) tmp_idyn=' -i_dynamic';;
  13400. esac
  13401. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13402. archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  13403. ;;
  13404. esac
  13405. archive_cmds_need_lc_CXX=no
  13406. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13407. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13408. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  13409. ;;
  13410. pgCC* | pgcpp*)
  13411. # Portland Group C++ compiler
  13412. case `$CC -V` in
  13413. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  13414. prelink_cmds_CXX='tpldir=Template.dir~
  13415. rm -rf $tpldir~
  13416. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  13417. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  13418. old_archive_cmds_CXX='tpldir=Template.dir~
  13419. rm -rf $tpldir~
  13420. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  13421. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  13422. $RANLIB $oldlib'
  13423. archive_cmds_CXX='tpldir=Template.dir~
  13424. rm -rf $tpldir~
  13425. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13426. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13427. archive_expsym_cmds_CXX='tpldir=Template.dir~
  13428. rm -rf $tpldir~
  13429. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13430. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  13431. ;;
  13432. *) # Version 6 and above use weak symbols
  13433. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13434. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  13435. ;;
  13436. esac
  13437. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  13438. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13439. whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  13440. ;;
  13441. cxx*)
  13442. # Compaq C++
  13443. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13444. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols'
  13445. runpath_var=LD_RUN_PATH
  13446. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13447. hardcode_libdir_separator_CXX=:
  13448. # Commands to make compiler produce verbose output that lists
  13449. # what "hidden" libraries, object files and flags are used when
  13450. # linking a shared library.
  13451. #
  13452. # There doesn't appear to be a way to prevent this compiler from
  13453. # explicitly linking system object files so we need to strip them
  13454. # from the output so that they don't get included in the library
  13455. # dependencies.
  13456. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
  13457. ;;
  13458. xl* | mpixl* | bgxl*)
  13459. # IBM XL 8.0 on PPC, with GNU ld
  13460. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13461. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13462. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13463. if test yes = "$supports_anon_versioning"; then
  13464. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  13465. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13466. echo "local: *; };" >> $output_objdir/$libname.ver~
  13467. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  13468. fi
  13469. ;;
  13470. *)
  13471. case `$CC -V 2>&1 | sed 5q` in
  13472. *Sun\ C*)
  13473. # Sun C++ 5.9
  13474. no_undefined_flag_CXX=' -zdefs'
  13475. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13476. archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
  13477. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13478. whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  13479. compiler_needs_object_CXX=yes
  13480. # Not sure whether something based on
  13481. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  13482. # would be better.
  13483. output_verbose_link_cmd='func_echo_all'
  13484. # Archives containing C++ object files must be created using
  13485. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13486. # necessary to make sure instantiated templates are included
  13487. # in the archive.
  13488. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13489. ;;
  13490. esac
  13491. ;;
  13492. esac
  13493. ;;
  13494. lynxos*)
  13495. # FIXME: insert proper C++ library support
  13496. ld_shlibs_CXX=no
  13497. ;;
  13498. m88k*)
  13499. # FIXME: insert proper C++ library support
  13500. ld_shlibs_CXX=no
  13501. ;;
  13502. mvs*)
  13503. case $cc_basename in
  13504. cxx*)
  13505. # FIXME: insert proper C++ library support
  13506. ld_shlibs_CXX=no
  13507. ;;
  13508. *)
  13509. # FIXME: insert proper C++ library support
  13510. ld_shlibs_CXX=no
  13511. ;;
  13512. esac
  13513. ;;
  13514. netbsd*)
  13515. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13516. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  13517. wlarc=
  13518. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13519. hardcode_direct_CXX=yes
  13520. hardcode_shlibpath_var_CXX=no
  13521. fi
  13522. # Workaround some broken pre-1.5 toolchains
  13523. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  13524. ;;
  13525. *nto* | *qnx*)
  13526. ld_shlibs_CXX=yes
  13527. ;;
  13528. openbsd* | bitrig*)
  13529. if test -f /usr/libexec/ld.so; then
  13530. hardcode_direct_CXX=yes
  13531. hardcode_shlibpath_var_CXX=no
  13532. hardcode_direct_absolute_CXX=yes
  13533. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  13534. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13535. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  13536. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  13537. export_dynamic_flag_spec_CXX='$wl-E'
  13538. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  13539. fi
  13540. output_verbose_link_cmd=func_echo_all
  13541. else
  13542. ld_shlibs_CXX=no
  13543. fi
  13544. ;;
  13545. osf3* | osf4* | osf5*)
  13546. case $cc_basename in
  13547. KCC*)
  13548. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13549. # KCC will only create a shared library if the output file
  13550. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13551. # to its proper name (with version) after linking.
  13552. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  13553. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13554. hardcode_libdir_separator_CXX=:
  13555. # Archives containing C++ object files must be created using
  13556. # the KAI C++ compiler.
  13557. case $host in
  13558. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  13559. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  13560. esac
  13561. ;;
  13562. RCC*)
  13563. # Rational C++ 2.4.1
  13564. # FIXME: insert proper C++ library support
  13565. ld_shlibs_CXX=no
  13566. ;;
  13567. cxx*)
  13568. case $host in
  13569. osf3*)
  13570. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13571. archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  13572. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13573. ;;
  13574. *)
  13575. allow_undefined_flag_CXX=' -expect_unresolved \*'
  13576. archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  13577. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  13578. echo "-hidden">> $lib.exp~
  13579. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
  13580. $RM $lib.exp'
  13581. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13582. ;;
  13583. esac
  13584. hardcode_libdir_separator_CXX=:
  13585. # Commands to make compiler produce verbose output that lists
  13586. # what "hidden" libraries, object files and flags are used when
  13587. # linking a shared library.
  13588. #
  13589. # There doesn't appear to be a way to prevent this compiler from
  13590. # explicitly linking system object files so we need to strip them
  13591. # from the output so that they don't get included in the library
  13592. # dependencies.
  13593. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  13594. ;;
  13595. *)
  13596. if test yes,no = "$GXX,$with_gnu_ld"; then
  13597. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13598. case $host in
  13599. osf3*)
  13600. archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  13601. ;;
  13602. *)
  13603. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  13604. ;;
  13605. esac
  13606. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13607. hardcode_libdir_separator_CXX=:
  13608. # Commands to make compiler produce verbose output that lists
  13609. # what "hidden" libraries, object files and flags are used when
  13610. # linking a shared library.
  13611. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13612. else
  13613. # FIXME: insert proper C++ library support
  13614. ld_shlibs_CXX=no
  13615. fi
  13616. ;;
  13617. esac
  13618. ;;
  13619. psos*)
  13620. # FIXME: insert proper C++ library support
  13621. ld_shlibs_CXX=no
  13622. ;;
  13623. sunos4*)
  13624. case $cc_basename in
  13625. CC*)
  13626. # Sun C++ 4.x
  13627. # FIXME: insert proper C++ library support
  13628. ld_shlibs_CXX=no
  13629. ;;
  13630. lcc*)
  13631. # Lucid
  13632. # FIXME: insert proper C++ library support
  13633. ld_shlibs_CXX=no
  13634. ;;
  13635. *)
  13636. # FIXME: insert proper C++ library support
  13637. ld_shlibs_CXX=no
  13638. ;;
  13639. esac
  13640. ;;
  13641. solaris*)
  13642. case $cc_basename in
  13643. CC* | sunCC*)
  13644. # Sun C++ 4.2, 5.x and Centerline C++
  13645. archive_cmds_need_lc_CXX=yes
  13646. no_undefined_flag_CXX=' -zdefs'
  13647. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13648. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13649. $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  13650. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13651. hardcode_shlibpath_var_CXX=no
  13652. case $host_os in
  13653. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13654. *)
  13655. # The compiler driver will combine and reorder linker options,
  13656. # but understands '-z linker_flag'.
  13657. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13658. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  13659. ;;
  13660. esac
  13661. link_all_deplibs_CXX=yes
  13662. output_verbose_link_cmd='func_echo_all'
  13663. # Archives containing C++ object files must be created using
  13664. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13665. # necessary to make sure instantiated templates are included
  13666. # in the archive.
  13667. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13668. ;;
  13669. gcx*)
  13670. # Green Hills C++ Compiler
  13671. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13672. # The C++ compiler must be used to create the archive.
  13673. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  13674. ;;
  13675. *)
  13676. # GNU C++ compiler with Solaris linker
  13677. if test yes,no = "$GXX,$with_gnu_ld"; then
  13678. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  13679. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  13680. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13681. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13682. $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  13683. # Commands to make compiler produce verbose output that lists
  13684. # what "hidden" libraries, object files and flags are used when
  13685. # linking a shared library.
  13686. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13687. else
  13688. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  13689. # platform.
  13690. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13691. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13692. $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  13693. # Commands to make compiler produce verbose output that lists
  13694. # what "hidden" libraries, object files and flags are used when
  13695. # linking a shared library.
  13696. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13697. fi
  13698. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  13699. case $host_os in
  13700. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13701. *)
  13702. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  13703. ;;
  13704. esac
  13705. fi
  13706. ;;
  13707. esac
  13708. ;;
  13709. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13710. no_undefined_flag_CXX='$wl-z,text'
  13711. archive_cmds_need_lc_CXX=no
  13712. hardcode_shlibpath_var_CXX=no
  13713. runpath_var='LD_RUN_PATH'
  13714. case $cc_basename in
  13715. CC*)
  13716. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13717. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13718. ;;
  13719. *)
  13720. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13721. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13722. ;;
  13723. esac
  13724. ;;
  13725. sysv5* | sco3.2v5* | sco5v6*)
  13726. # Note: We CANNOT use -z defs as we might desire, because we do not
  13727. # link with -lc, and that would cause any symbols used from libc to
  13728. # always be unresolved, which means just about no library would
  13729. # ever link correctly. If we're not using GNU ld we use -z text
  13730. # though, which does catch some bad symbols but isn't as heavy-handed
  13731. # as -z defs.
  13732. no_undefined_flag_CXX='$wl-z,text'
  13733. allow_undefined_flag_CXX='$wl-z,nodefs'
  13734. archive_cmds_need_lc_CXX=no
  13735. hardcode_shlibpath_var_CXX=no
  13736. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  13737. hardcode_libdir_separator_CXX=':'
  13738. link_all_deplibs_CXX=yes
  13739. export_dynamic_flag_spec_CXX='$wl-Bexport'
  13740. runpath_var='LD_RUN_PATH'
  13741. case $cc_basename in
  13742. CC*)
  13743. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13744. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13745. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  13746. '"$old_archive_cmds_CXX"
  13747. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  13748. '"$reload_cmds_CXX"
  13749. ;;
  13750. *)
  13751. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13752. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13753. ;;
  13754. esac
  13755. ;;
  13756. tandem*)
  13757. case $cc_basename in
  13758. NCC*)
  13759. # NonStop-UX NCC 3.20
  13760. # FIXME: insert proper C++ library support
  13761. ld_shlibs_CXX=no
  13762. ;;
  13763. *)
  13764. # FIXME: insert proper C++ library support
  13765. ld_shlibs_CXX=no
  13766. ;;
  13767. esac
  13768. ;;
  13769. vxworks*)
  13770. # FIXME: insert proper C++ library support
  13771. ld_shlibs_CXX=no
  13772. ;;
  13773. *)
  13774. # FIXME: insert proper C++ library support
  13775. ld_shlibs_CXX=no
  13776. ;;
  13777. esac
  13778. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13779. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  13780. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13781. GCC_CXX=$GXX
  13782. LD_CXX=$LD
  13783. ## CAVEAT EMPTOR:
  13784. ## There is no encapsulation within the following macros, do not change
  13785. ## the running order or otherwise move them around unless you know exactly
  13786. ## what you are doing...
  13787. # Dependencies to place before and after the object being linked:
  13788. predep_objects_CXX=
  13789. postdep_objects_CXX=
  13790. predeps_CXX=
  13791. postdeps_CXX=
  13792. compiler_lib_search_path_CXX=
  13793. cat > conftest.$ac_ext <<_LT_EOF
  13794. class Foo
  13795. {
  13796. public:
  13797. Foo (void) { a = 0; }
  13798. private:
  13799. int a;
  13800. };
  13801. _LT_EOF
  13802. _lt_libdeps_save_CFLAGS=$CFLAGS
  13803. case "$CC $CFLAGS " in #(
  13804. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  13805. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  13806. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  13807. esac
  13808. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13809. (eval $ac_compile) 2>&5
  13810. ac_status=$?
  13811. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13812. test $ac_status = 0; }; then
  13813. # Parse the compiler output and extract the necessary
  13814. # objects, libraries and library flags.
  13815. # Sentinel used to keep track of whether or not we are before
  13816. # the conftest object file.
  13817. pre_test_object_deps_done=no
  13818. for p in `eval "$output_verbose_link_cmd"`; do
  13819. case $prev$p in
  13820. -L* | -R* | -l*)
  13821. # Some compilers place space between "-{L,R}" and the path.
  13822. # Remove the space.
  13823. if test x-L = "x$p" ||
  13824. test x-R = "x$p" ||
  13825. test x-l = "x$p"; then
  13826. prev=$p
  13827. continue
  13828. fi
  13829. # Expand the sysroot to ease extracting the directories later.
  13830. if test -z "$prev"; then
  13831. case $p in
  13832. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  13833. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  13834. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  13835. esac
  13836. fi
  13837. case $p in
  13838. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  13839. esac
  13840. if test no = "$pre_test_object_deps_done"; then
  13841. case $prev in
  13842. -L | -R)
  13843. # Internal compiler library paths should come after those
  13844. # provided the user. The postdeps already come after the
  13845. # user supplied libs so there is no need to process them.
  13846. if test -z "$compiler_lib_search_path_CXX"; then
  13847. compiler_lib_search_path_CXX=$prev$p
  13848. else
  13849. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  13850. fi
  13851. ;;
  13852. # The "-l" case would never come before the object being
  13853. # linked, so don't bother handling this case.
  13854. esac
  13855. else
  13856. if test -z "$postdeps_CXX"; then
  13857. postdeps_CXX=$prev$p
  13858. else
  13859. postdeps_CXX="${postdeps_CXX} $prev$p"
  13860. fi
  13861. fi
  13862. prev=
  13863. ;;
  13864. *.lto.$objext) ;; # Ignore GCC LTO objects
  13865. *.$objext)
  13866. # This assumes that the test object file only shows up
  13867. # once in the compiler output.
  13868. if test "$p" = "conftest.$objext"; then
  13869. pre_test_object_deps_done=yes
  13870. continue
  13871. fi
  13872. if test no = "$pre_test_object_deps_done"; then
  13873. if test -z "$predep_objects_CXX"; then
  13874. predep_objects_CXX=$p
  13875. else
  13876. predep_objects_CXX="$predep_objects_CXX $p"
  13877. fi
  13878. else
  13879. if test -z "$postdep_objects_CXX"; then
  13880. postdep_objects_CXX=$p
  13881. else
  13882. postdep_objects_CXX="$postdep_objects_CXX $p"
  13883. fi
  13884. fi
  13885. ;;
  13886. *) ;; # Ignore the rest.
  13887. esac
  13888. done
  13889. # Clean up.
  13890. rm -f a.out a.exe
  13891. else
  13892. echo "libtool.m4: error: problem compiling CXX test program"
  13893. fi
  13894. $RM -f confest.$objext
  13895. CFLAGS=$_lt_libdeps_save_CFLAGS
  13896. # PORTME: override above test on systems where it is broken
  13897. case $host_os in
  13898. interix[3-9]*)
  13899. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  13900. # hack all around it, let's just trust "g++" to DTRT.
  13901. predep_objects_CXX=
  13902. postdep_objects_CXX=
  13903. postdeps_CXX=
  13904. ;;
  13905. esac
  13906. case " $postdeps_CXX " in
  13907. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  13908. esac
  13909. compiler_lib_search_dirs_CXX=
  13910. if test -n "${compiler_lib_search_path_CXX}"; then
  13911. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  13912. fi
  13913. lt_prog_compiler_wl_CXX=
  13914. lt_prog_compiler_pic_CXX=
  13915. lt_prog_compiler_static_CXX=
  13916. # C++ specific cases for pic, static, wl, etc.
  13917. if test yes = "$GXX"; then
  13918. lt_prog_compiler_wl_CXX='-Wl,'
  13919. lt_prog_compiler_static_CXX='-static'
  13920. case $host_os in
  13921. aix*)
  13922. # All AIX code is PIC.
  13923. if test ia64 = "$host_cpu"; then
  13924. # AIX 5 now supports IA64 processor
  13925. lt_prog_compiler_static_CXX='-Bstatic'
  13926. fi
  13927. lt_prog_compiler_pic_CXX='-fPIC'
  13928. ;;
  13929. amigaos*)
  13930. case $host_cpu in
  13931. powerpc)
  13932. # see comment about AmigaOS4 .so support
  13933. lt_prog_compiler_pic_CXX='-fPIC'
  13934. ;;
  13935. m68k)
  13936. # FIXME: we need at least 68020 code to build shared libraries, but
  13937. # adding the '-m68020' flag to GCC prevents building anything better,
  13938. # like '-m68040'.
  13939. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  13940. ;;
  13941. esac
  13942. ;;
  13943. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13944. # PIC is the default for these OSes.
  13945. ;;
  13946. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13947. # This hack is so that the source file can tell whether it is being
  13948. # built for inclusion in a dll (and should export symbols for example).
  13949. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  13950. # (--disable-auto-import) libraries
  13951. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13952. case $host_os in
  13953. os2*)
  13954. lt_prog_compiler_static_CXX='$wl-static'
  13955. ;;
  13956. esac
  13957. ;;
  13958. darwin* | rhapsody*)
  13959. # PIC is the default on this platform
  13960. # Common symbols not allowed in MH_DYLIB files
  13961. lt_prog_compiler_pic_CXX='-fno-common'
  13962. ;;
  13963. *djgpp*)
  13964. # DJGPP does not support shared libraries at all
  13965. lt_prog_compiler_pic_CXX=
  13966. ;;
  13967. haiku*)
  13968. # PIC is the default for Haiku.
  13969. # The "-static" flag exists, but is broken.
  13970. lt_prog_compiler_static_CXX=
  13971. ;;
  13972. interix[3-9]*)
  13973. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  13974. # Instead, we relocate shared libraries at runtime.
  13975. ;;
  13976. sysv4*MP*)
  13977. if test -d /usr/nec; then
  13978. lt_prog_compiler_pic_CXX=-Kconform_pic
  13979. fi
  13980. ;;
  13981. hpux*)
  13982. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  13983. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  13984. # sets the default TLS model and affects inlining.
  13985. case $host_cpu in
  13986. hppa*64*)
  13987. ;;
  13988. *)
  13989. lt_prog_compiler_pic_CXX='-fPIC'
  13990. ;;
  13991. esac
  13992. ;;
  13993. *qnx* | *nto*)
  13994. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13995. # it will coredump.
  13996. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13997. ;;
  13998. *)
  13999. lt_prog_compiler_pic_CXX='-fPIC'
  14000. ;;
  14001. esac
  14002. else
  14003. case $host_os in
  14004. aix[4-9]*)
  14005. # All AIX code is PIC.
  14006. if test ia64 = "$host_cpu"; then
  14007. # AIX 5 now supports IA64 processor
  14008. lt_prog_compiler_static_CXX='-Bstatic'
  14009. else
  14010. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  14011. fi
  14012. ;;
  14013. chorus*)
  14014. case $cc_basename in
  14015. cxch68*)
  14016. # Green Hills C++ Compiler
  14017. # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  14018. ;;
  14019. esac
  14020. ;;
  14021. mingw* | cygwin* | os2* | pw32* | cegcc*)
  14022. # This hack is so that the source file can tell whether it is being
  14023. # built for inclusion in a dll (and should export symbols for example).
  14024. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  14025. ;;
  14026. dgux*)
  14027. case $cc_basename in
  14028. ec++*)
  14029. lt_prog_compiler_pic_CXX='-KPIC'
  14030. ;;
  14031. ghcx*)
  14032. # Green Hills C++ Compiler
  14033. lt_prog_compiler_pic_CXX='-pic'
  14034. ;;
  14035. *)
  14036. ;;
  14037. esac
  14038. ;;
  14039. freebsd* | dragonfly* | midnightbsd*)
  14040. # FreeBSD uses GNU C++
  14041. ;;
  14042. hpux9* | hpux10* | hpux11*)
  14043. case $cc_basename in
  14044. CC*)
  14045. lt_prog_compiler_wl_CXX='-Wl,'
  14046. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  14047. if test ia64 != "$host_cpu"; then
  14048. lt_prog_compiler_pic_CXX='+Z'
  14049. fi
  14050. ;;
  14051. aCC*)
  14052. lt_prog_compiler_wl_CXX='-Wl,'
  14053. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  14054. case $host_cpu in
  14055. hppa*64*|ia64*)
  14056. # +Z the default
  14057. ;;
  14058. *)
  14059. lt_prog_compiler_pic_CXX='+Z'
  14060. ;;
  14061. esac
  14062. ;;
  14063. *)
  14064. ;;
  14065. esac
  14066. ;;
  14067. interix*)
  14068. # This is c89, which is MS Visual C++ (no shared libs)
  14069. # Anyone wants to do a port?
  14070. ;;
  14071. irix5* | irix6* | nonstopux*)
  14072. case $cc_basename in
  14073. CC*)
  14074. lt_prog_compiler_wl_CXX='-Wl,'
  14075. lt_prog_compiler_static_CXX='-non_shared'
  14076. # CC pic flag -KPIC is the default.
  14077. ;;
  14078. *)
  14079. ;;
  14080. esac
  14081. ;;
  14082. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14083. case $cc_basename in
  14084. KCC*)
  14085. # KAI C++ Compiler
  14086. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14087. lt_prog_compiler_pic_CXX='-fPIC'
  14088. ;;
  14089. ecpc* )
  14090. # old Intel C++ for x86_64, which still supported -KPIC.
  14091. lt_prog_compiler_wl_CXX='-Wl,'
  14092. lt_prog_compiler_pic_CXX='-KPIC'
  14093. lt_prog_compiler_static_CXX='-static'
  14094. ;;
  14095. icpc* )
  14096. # Intel C++, used to be incompatible with GCC.
  14097. # ICC 10 doesn't accept -KPIC any more.
  14098. lt_prog_compiler_wl_CXX='-Wl,'
  14099. lt_prog_compiler_pic_CXX='-fPIC'
  14100. lt_prog_compiler_static_CXX='-static'
  14101. ;;
  14102. pgCC* | pgcpp*)
  14103. # Portland Group C++ compiler
  14104. lt_prog_compiler_wl_CXX='-Wl,'
  14105. lt_prog_compiler_pic_CXX='-fpic'
  14106. lt_prog_compiler_static_CXX='-Bstatic'
  14107. ;;
  14108. cxx*)
  14109. # Compaq C++
  14110. # Make sure the PIC flag is empty. It appears that all Alpha
  14111. # Linux and Compaq Tru64 Unix objects are PIC.
  14112. lt_prog_compiler_pic_CXX=
  14113. lt_prog_compiler_static_CXX='-non_shared'
  14114. ;;
  14115. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  14116. # IBM XL 8.0, 9.0 on PPC and BlueGene
  14117. lt_prog_compiler_wl_CXX='-Wl,'
  14118. lt_prog_compiler_pic_CXX='-qpic'
  14119. lt_prog_compiler_static_CXX='-qstaticlink'
  14120. ;;
  14121. *)
  14122. case `$CC -V 2>&1 | sed 5q` in
  14123. *Sun\ C*)
  14124. # Sun C++ 5.9
  14125. lt_prog_compiler_pic_CXX='-KPIC'
  14126. lt_prog_compiler_static_CXX='-Bstatic'
  14127. lt_prog_compiler_wl_CXX='-Qoption ld '
  14128. ;;
  14129. esac
  14130. ;;
  14131. esac
  14132. ;;
  14133. lynxos*)
  14134. ;;
  14135. m88k*)
  14136. ;;
  14137. mvs*)
  14138. case $cc_basename in
  14139. cxx*)
  14140. lt_prog_compiler_pic_CXX='-W c,exportall'
  14141. ;;
  14142. *)
  14143. ;;
  14144. esac
  14145. ;;
  14146. netbsd*)
  14147. ;;
  14148. *qnx* | *nto*)
  14149. # QNX uses GNU C++, but need to define -shared option too, otherwise
  14150. # it will coredump.
  14151. lt_prog_compiler_pic_CXX='-fPIC -shared'
  14152. ;;
  14153. osf3* | osf4* | osf5*)
  14154. case $cc_basename in
  14155. KCC*)
  14156. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14157. ;;
  14158. RCC*)
  14159. # Rational C++ 2.4.1
  14160. lt_prog_compiler_pic_CXX='-pic'
  14161. ;;
  14162. cxx*)
  14163. # Digital/Compaq C++
  14164. lt_prog_compiler_wl_CXX='-Wl,'
  14165. # Make sure the PIC flag is empty. It appears that all Alpha
  14166. # Linux and Compaq Tru64 Unix objects are PIC.
  14167. lt_prog_compiler_pic_CXX=
  14168. lt_prog_compiler_static_CXX='-non_shared'
  14169. ;;
  14170. *)
  14171. ;;
  14172. esac
  14173. ;;
  14174. psos*)
  14175. ;;
  14176. solaris*)
  14177. case $cc_basename in
  14178. CC* | sunCC*)
  14179. # Sun C++ 4.2, 5.x and Centerline C++
  14180. lt_prog_compiler_pic_CXX='-KPIC'
  14181. lt_prog_compiler_static_CXX='-Bstatic'
  14182. lt_prog_compiler_wl_CXX='-Qoption ld '
  14183. ;;
  14184. gcx*)
  14185. # Green Hills C++ Compiler
  14186. lt_prog_compiler_pic_CXX='-PIC'
  14187. ;;
  14188. *)
  14189. ;;
  14190. esac
  14191. ;;
  14192. sunos4*)
  14193. case $cc_basename in
  14194. CC*)
  14195. # Sun C++ 4.x
  14196. lt_prog_compiler_pic_CXX='-pic'
  14197. lt_prog_compiler_static_CXX='-Bstatic'
  14198. ;;
  14199. lcc*)
  14200. # Lucid
  14201. lt_prog_compiler_pic_CXX='-pic'
  14202. ;;
  14203. *)
  14204. ;;
  14205. esac
  14206. ;;
  14207. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14208. case $cc_basename in
  14209. CC*)
  14210. lt_prog_compiler_wl_CXX='-Wl,'
  14211. lt_prog_compiler_pic_CXX='-KPIC'
  14212. lt_prog_compiler_static_CXX='-Bstatic'
  14213. ;;
  14214. esac
  14215. ;;
  14216. tandem*)
  14217. case $cc_basename in
  14218. NCC*)
  14219. # NonStop-UX NCC 3.20
  14220. lt_prog_compiler_pic_CXX='-KPIC'
  14221. ;;
  14222. *)
  14223. ;;
  14224. esac
  14225. ;;
  14226. vxworks*)
  14227. ;;
  14228. *)
  14229. lt_prog_compiler_can_build_shared_CXX=no
  14230. ;;
  14231. esac
  14232. fi
  14233. case $host_os in
  14234. # For platforms that do not support PIC, -DPIC is meaningless:
  14235. *djgpp*)
  14236. lt_prog_compiler_pic_CXX=
  14237. ;;
  14238. *)
  14239. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  14240. ;;
  14241. esac
  14242. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  14243. printf %s "checking for $compiler option to produce PIC... " >&6; }
  14244. if test ${lt_cv_prog_compiler_pic_CXX+y}
  14245. then :
  14246. printf %s "(cached) " >&6
  14247. else $as_nop
  14248. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  14249. fi
  14250. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  14251. printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
  14252. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  14253. #
  14254. # Check to make sure the PIC flag actually works.
  14255. #
  14256. if test -n "$lt_prog_compiler_pic_CXX"; then
  14257. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  14258. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  14259. if test ${lt_cv_prog_compiler_pic_works_CXX+y}
  14260. then :
  14261. printf %s "(cached) " >&6
  14262. else $as_nop
  14263. lt_cv_prog_compiler_pic_works_CXX=no
  14264. ac_outfile=conftest.$ac_objext
  14265. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14266. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  14267. # Insert the option either (1) after the last *FLAGS variable, or
  14268. # (2) before a word containing "conftest.", or (3) at the end.
  14269. # Note that $ac_compile itself does not contain backslashes and begins
  14270. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14271. # The option is referenced via a variable to avoid confusing sed.
  14272. lt_compile=`echo "$ac_compile" | $SED \
  14273. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14274. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14275. -e 's:$: $lt_compiler_flag:'`
  14276. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14277. (eval "$lt_compile" 2>conftest.err)
  14278. ac_status=$?
  14279. cat conftest.err >&5
  14280. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14281. if (exit $ac_status) && test -s "$ac_outfile"; then
  14282. # The compiler can only warn and ignore the option if not recognized
  14283. # So say no if there are warnings other than the usual output.
  14284. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  14285. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14286. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14287. lt_cv_prog_compiler_pic_works_CXX=yes
  14288. fi
  14289. fi
  14290. $RM conftest*
  14291. fi
  14292. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  14293. printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  14294. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  14295. case $lt_prog_compiler_pic_CXX in
  14296. "" | " "*) ;;
  14297. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  14298. esac
  14299. else
  14300. lt_prog_compiler_pic_CXX=
  14301. lt_prog_compiler_can_build_shared_CXX=no
  14302. fi
  14303. fi
  14304. #
  14305. # Check to make sure the static flag actually works.
  14306. #
  14307. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  14308. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  14309. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  14310. if test ${lt_cv_prog_compiler_static_works_CXX+y}
  14311. then :
  14312. printf %s "(cached) " >&6
  14313. else $as_nop
  14314. lt_cv_prog_compiler_static_works_CXX=no
  14315. save_LDFLAGS=$LDFLAGS
  14316. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  14317. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  14318. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  14319. # The linker can only warn and ignore the option if not recognized
  14320. # So say no if there are warnings
  14321. if test -s conftest.err; then
  14322. # Append any errors to the config.log.
  14323. cat conftest.err 1>&5
  14324. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  14325. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14326. if diff conftest.exp conftest.er2 >/dev/null; then
  14327. lt_cv_prog_compiler_static_works_CXX=yes
  14328. fi
  14329. else
  14330. lt_cv_prog_compiler_static_works_CXX=yes
  14331. fi
  14332. fi
  14333. $RM -r conftest*
  14334. LDFLAGS=$save_LDFLAGS
  14335. fi
  14336. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  14337. printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  14338. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  14339. :
  14340. else
  14341. lt_prog_compiler_static_CXX=
  14342. fi
  14343. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14344. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14345. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  14346. then :
  14347. printf %s "(cached) " >&6
  14348. else $as_nop
  14349. lt_cv_prog_compiler_c_o_CXX=no
  14350. $RM -r conftest 2>/dev/null
  14351. mkdir conftest
  14352. cd conftest
  14353. mkdir out
  14354. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14355. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14356. # Insert the option either (1) after the last *FLAGS variable, or
  14357. # (2) before a word containing "conftest.", or (3) at the end.
  14358. # Note that $ac_compile itself does not contain backslashes and begins
  14359. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14360. lt_compile=`echo "$ac_compile" | $SED \
  14361. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14362. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14363. -e 's:$: $lt_compiler_flag:'`
  14364. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14365. (eval "$lt_compile" 2>out/conftest.err)
  14366. ac_status=$?
  14367. cat out/conftest.err >&5
  14368. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14369. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14370. then
  14371. # The compiler can only warn and ignore the option if not recognized
  14372. # So say no if there are warnings
  14373. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14374. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14375. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14376. lt_cv_prog_compiler_c_o_CXX=yes
  14377. fi
  14378. fi
  14379. chmod u+w . 2>&5
  14380. $RM conftest*
  14381. # SGI C++ compiler will create directory out/ii_files/ for
  14382. # template instantiation
  14383. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14384. $RM out/* && rmdir out
  14385. cd ..
  14386. $RM -r conftest
  14387. $RM conftest*
  14388. fi
  14389. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14390. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14391. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14392. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14393. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  14394. then :
  14395. printf %s "(cached) " >&6
  14396. else $as_nop
  14397. lt_cv_prog_compiler_c_o_CXX=no
  14398. $RM -r conftest 2>/dev/null
  14399. mkdir conftest
  14400. cd conftest
  14401. mkdir out
  14402. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14403. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14404. # Insert the option either (1) after the last *FLAGS variable, or
  14405. # (2) before a word containing "conftest.", or (3) at the end.
  14406. # Note that $ac_compile itself does not contain backslashes and begins
  14407. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14408. lt_compile=`echo "$ac_compile" | $SED \
  14409. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14410. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14411. -e 's:$: $lt_compiler_flag:'`
  14412. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14413. (eval "$lt_compile" 2>out/conftest.err)
  14414. ac_status=$?
  14415. cat out/conftest.err >&5
  14416. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14417. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14418. then
  14419. # The compiler can only warn and ignore the option if not recognized
  14420. # So say no if there are warnings
  14421. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14422. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14423. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14424. lt_cv_prog_compiler_c_o_CXX=yes
  14425. fi
  14426. fi
  14427. chmod u+w . 2>&5
  14428. $RM conftest*
  14429. # SGI C++ compiler will create directory out/ii_files/ for
  14430. # template instantiation
  14431. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14432. $RM out/* && rmdir out
  14433. cd ..
  14434. $RM -r conftest
  14435. $RM conftest*
  14436. fi
  14437. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14438. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14439. hard_links=nottested
  14440. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  14441. # do not overwrite the value of need_locks provided by the user
  14442. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  14443. printf %s "checking if we can lock with hard links... " >&6; }
  14444. hard_links=yes
  14445. $RM conftest*
  14446. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14447. touch conftest.a
  14448. ln conftest.a conftest.b 2>&5 || hard_links=no
  14449. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14450. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  14451. printf "%s\n" "$hard_links" >&6; }
  14452. if test no = "$hard_links"; then
  14453. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  14454. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  14455. need_locks=warn
  14456. fi
  14457. else
  14458. need_locks=no
  14459. fi
  14460. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14461. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  14462. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14463. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  14464. case $host_os in
  14465. aix[4-9]*)
  14466. # If we're using GNU nm, then we don't want the "-C" option.
  14467. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  14468. # Without the "-l" option, or with the "-B" option, AIX nm treats
  14469. # weak defined symbols like other global defined symbols, whereas
  14470. # GNU nm marks them as "W".
  14471. # While the 'weak' keyword is ignored in the Export File, we need
  14472. # it in the Import File for the 'aix-soname' feature, so we have
  14473. # to replace the "-B" option with "-P" for AIX nm.
  14474. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  14475. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  14476. else
  14477. export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  14478. fi
  14479. ;;
  14480. pw32*)
  14481. export_symbols_cmds_CXX=$ltdll_cmds
  14482. ;;
  14483. cygwin* | mingw* | cegcc*)
  14484. case $cc_basename in
  14485. cl*)
  14486. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  14487. ;;
  14488. *)
  14489. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  14490. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  14491. ;;
  14492. esac
  14493. ;;
  14494. *)
  14495. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14496. ;;
  14497. esac
  14498. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  14499. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  14500. test no = "$ld_shlibs_CXX" && can_build_shared=no
  14501. with_gnu_ld_CXX=$with_gnu_ld
  14502. #
  14503. # Do we need to explicitly link libc?
  14504. #
  14505. case "x$archive_cmds_need_lc_CXX" in
  14506. x|xyes)
  14507. # Assume -lc should be added
  14508. archive_cmds_need_lc_CXX=yes
  14509. if test yes,yes = "$GCC,$enable_shared"; then
  14510. case $archive_cmds_CXX in
  14511. *'~'*)
  14512. # FIXME: we may have to deal with multi-command sequences.
  14513. ;;
  14514. '$CC '*)
  14515. # Test whether the compiler implicitly links with -lc since on some
  14516. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14517. # to ld, don't add -lc before -lgcc.
  14518. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  14519. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  14520. if test ${lt_cv_archive_cmds_need_lc_CXX+y}
  14521. then :
  14522. printf %s "(cached) " >&6
  14523. else $as_nop
  14524. $RM conftest*
  14525. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14526. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  14527. (eval $ac_compile) 2>&5
  14528. ac_status=$?
  14529. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14530. test $ac_status = 0; } 2>conftest.err; then
  14531. soname=conftest
  14532. lib=conftest
  14533. libobjs=conftest.$ac_objext
  14534. deplibs=
  14535. wl=$lt_prog_compiler_wl_CXX
  14536. pic_flag=$lt_prog_compiler_pic_CXX
  14537. compiler_flags=-v
  14538. linker_flags=-v
  14539. verstring=
  14540. output_objdir=.
  14541. libname=conftest
  14542. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  14543. allow_undefined_flag_CXX=
  14544. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  14545. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14546. ac_status=$?
  14547. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14548. test $ac_status = 0; }
  14549. then
  14550. lt_cv_archive_cmds_need_lc_CXX=no
  14551. else
  14552. lt_cv_archive_cmds_need_lc_CXX=yes
  14553. fi
  14554. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  14555. else
  14556. cat conftest.err 1>&5
  14557. fi
  14558. $RM conftest*
  14559. fi
  14560. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  14561. printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  14562. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  14563. ;;
  14564. esac
  14565. fi
  14566. ;;
  14567. esac
  14568. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  14569. printf %s "checking dynamic linker characteristics... " >&6; }
  14570. library_names_spec=
  14571. libname_spec='lib$name'
  14572. soname_spec=
  14573. shrext_cmds=.so
  14574. postinstall_cmds=
  14575. postuninstall_cmds=
  14576. finish_cmds=
  14577. finish_eval=
  14578. shlibpath_var=
  14579. shlibpath_overrides_runpath=unknown
  14580. version_type=none
  14581. dynamic_linker="$host_os ld.so"
  14582. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14583. need_lib_prefix=unknown
  14584. hardcode_into_libs=no
  14585. # when you set need_version to no, make sure it does not cause -set_version
  14586. # flags to be left without arguments
  14587. need_version=unknown
  14588. case $host_os in
  14589. aix3*)
  14590. version_type=linux # correct to gnu/linux during the next big refactor
  14591. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  14592. shlibpath_var=LIBPATH
  14593. # AIX 3 has no versioning support, so we append a major version to the name.
  14594. soname_spec='$libname$release$shared_ext$major'
  14595. ;;
  14596. aix[4-9]*)
  14597. version_type=linux # correct to gnu/linux during the next big refactor
  14598. need_lib_prefix=no
  14599. need_version=no
  14600. hardcode_into_libs=yes
  14601. if test ia64 = "$host_cpu"; then
  14602. # AIX 5 supports IA64
  14603. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  14604. shlibpath_var=LD_LIBRARY_PATH
  14605. else
  14606. # With GCC up to 2.95.x, collect2 would create an import file
  14607. # for dependence libraries. The import file would start with
  14608. # the line '#! .'. This would cause the generated library to
  14609. # depend on '.', always an invalid library. This was fixed in
  14610. # development snapshots of GCC prior to 3.0.
  14611. case $host_os in
  14612. aix4 | aix4.[01] | aix4.[01].*)
  14613. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14614. echo ' yes '
  14615. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  14616. :
  14617. else
  14618. can_build_shared=no
  14619. fi
  14620. ;;
  14621. esac
  14622. # Using Import Files as archive members, it is possible to support
  14623. # filename-based versioning of shared library archives on AIX. While
  14624. # this would work for both with and without runtime linking, it will
  14625. # prevent static linking of such archives. So we do filename-based
  14626. # shared library versioning with .so extension only, which is used
  14627. # when both runtime linking and shared linking is enabled.
  14628. # Unfortunately, runtime linking may impact performance, so we do
  14629. # not want this to be the default eventually. Also, we use the
  14630. # versioned .so libs for executables only if there is the -brtl
  14631. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  14632. # To allow for filename-based versioning support, we need to create
  14633. # libNAME.so.V as an archive file, containing:
  14634. # *) an Import File, referring to the versioned filename of the
  14635. # archive as well as the shared archive member, telling the
  14636. # bitwidth (32 or 64) of that shared object, and providing the
  14637. # list of exported symbols of that shared object, eventually
  14638. # decorated with the 'weak' keyword
  14639. # *) the shared object with the F_LOADONLY flag set, to really avoid
  14640. # it being seen by the linker.
  14641. # At run time we better use the real file rather than another symlink,
  14642. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  14643. case $with_aix_soname,$aix_use_runtimelinking in
  14644. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  14645. # soname into executable. Probably we can add versioning support to
  14646. # collect2, so additional links can be useful in future.
  14647. aix,yes) # traditional libtool
  14648. dynamic_linker='AIX unversionable lib.so'
  14649. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14650. # instead of lib<name>.a to let people know that these are not
  14651. # typical AIX shared libraries.
  14652. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14653. ;;
  14654. aix,no) # traditional AIX only
  14655. dynamic_linker='AIX lib.a(lib.so.V)'
  14656. # We preserve .a as extension for shared libraries through AIX4.2
  14657. # and later when we are not doing run time linking.
  14658. library_names_spec='$libname$release.a $libname.a'
  14659. soname_spec='$libname$release$shared_ext$major'
  14660. ;;
  14661. svr4,*) # full svr4 only
  14662. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  14663. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14664. # We do not specify a path in Import Files, so LIBPATH fires.
  14665. shlibpath_overrides_runpath=yes
  14666. ;;
  14667. *,yes) # both, prefer svr4
  14668. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  14669. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14670. # unpreferred sharedlib libNAME.a needs extra handling
  14671. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  14672. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  14673. # We do not specify a path in Import Files, so LIBPATH fires.
  14674. shlibpath_overrides_runpath=yes
  14675. ;;
  14676. *,no) # both, prefer aix
  14677. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  14678. library_names_spec='$libname$release.a $libname.a'
  14679. soname_spec='$libname$release$shared_ext$major'
  14680. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  14681. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  14682. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  14683. ;;
  14684. esac
  14685. shlibpath_var=LIBPATH
  14686. fi
  14687. ;;
  14688. amigaos*)
  14689. case $host_cpu in
  14690. powerpc)
  14691. # Since July 2007 AmigaOS4 officially supports .so libraries.
  14692. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  14693. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14694. ;;
  14695. m68k)
  14696. library_names_spec='$libname.ixlibrary $libname.a'
  14697. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14698. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  14699. ;;
  14700. esac
  14701. ;;
  14702. beos*)
  14703. library_names_spec='$libname$shared_ext'
  14704. dynamic_linker="$host_os ld.so"
  14705. shlibpath_var=LIBRARY_PATH
  14706. ;;
  14707. bsdi[45]*)
  14708. version_type=linux # correct to gnu/linux during the next big refactor
  14709. need_version=no
  14710. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14711. soname_spec='$libname$release$shared_ext$major'
  14712. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14713. shlibpath_var=LD_LIBRARY_PATH
  14714. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14715. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14716. # the default ld.so.conf also contains /usr/contrib/lib and
  14717. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14718. # libtool to hard-code these into programs
  14719. ;;
  14720. cygwin* | mingw* | pw32* | cegcc*)
  14721. version_type=windows
  14722. shrext_cmds=.dll
  14723. need_version=no
  14724. need_lib_prefix=no
  14725. case $GCC,$cc_basename in
  14726. yes,*)
  14727. # gcc
  14728. library_names_spec='$libname.dll.a'
  14729. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14730. postinstall_cmds='base_file=`basename \$file`~
  14731. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14732. dldir=$destdir/`dirname \$dlpath`~
  14733. test -d \$dldir || mkdir -p \$dldir~
  14734. $install_prog $dir/$dlname \$dldir/$dlname~
  14735. chmod a+x \$dldir/$dlname~
  14736. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14737. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14738. fi'
  14739. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14740. dlpath=$dir/\$dldll~
  14741. $RM \$dlpath'
  14742. shlibpath_overrides_runpath=yes
  14743. case $host_os in
  14744. cygwin*)
  14745. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14746. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  14747. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  14748. ;;
  14749. mingw* | cegcc*)
  14750. # MinGW DLLs use traditional 'lib' prefix
  14751. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  14752. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  14753. ;;
  14754. pw32*)
  14755. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14756. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14757. ;;
  14758. esac
  14759. dynamic_linker='Win32 ld.exe'
  14760. ;;
  14761. *,cl*)
  14762. # Native MSVC
  14763. libname_spec='$name'
  14764. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14765. library_names_spec='$libname.dll.lib'
  14766. case $build_os in
  14767. mingw*)
  14768. sys_lib_search_path_spec=
  14769. lt_save_ifs=$IFS
  14770. IFS=';'
  14771. for lt_path in $LIB
  14772. do
  14773. IFS=$lt_save_ifs
  14774. # Let DOS variable expansion print the short 8.3 style file name.
  14775. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  14776. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  14777. done
  14778. IFS=$lt_save_ifs
  14779. # Convert to MSYS style.
  14780. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  14781. ;;
  14782. cygwin*)
  14783. # Convert to unix form, then to dos form, then back to unix form
  14784. # but this time dos style (no spaces!) so that the unix form looks
  14785. # like /cygdrive/c/PROGRA~1:/cygdr...
  14786. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  14787. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  14788. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14789. ;;
  14790. *)
  14791. sys_lib_search_path_spec=$LIB
  14792. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  14793. # It is most probably a Windows format PATH.
  14794. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14795. else
  14796. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14797. fi
  14798. # FIXME: find the short name or the path components, as spaces are
  14799. # common. (e.g. "Program Files" -> "PROGRA~1")
  14800. ;;
  14801. esac
  14802. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14803. postinstall_cmds='base_file=`basename \$file`~
  14804. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14805. dldir=$destdir/`dirname \$dlpath`~
  14806. test -d \$dldir || mkdir -p \$dldir~
  14807. $install_prog $dir/$dlname \$dldir/$dlname'
  14808. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14809. dlpath=$dir/\$dldll~
  14810. $RM \$dlpath'
  14811. shlibpath_overrides_runpath=yes
  14812. dynamic_linker='Win32 link.exe'
  14813. ;;
  14814. *)
  14815. # Assume MSVC wrapper
  14816. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  14817. dynamic_linker='Win32 ld.exe'
  14818. ;;
  14819. esac
  14820. # FIXME: first we should search . and the directory the executable is in
  14821. shlibpath_var=PATH
  14822. ;;
  14823. darwin* | rhapsody*)
  14824. dynamic_linker="$host_os dyld"
  14825. version_type=darwin
  14826. need_lib_prefix=no
  14827. need_version=no
  14828. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  14829. soname_spec='$libname$release$major$shared_ext'
  14830. shlibpath_overrides_runpath=yes
  14831. shlibpath_var=DYLD_LIBRARY_PATH
  14832. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  14833. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14834. ;;
  14835. dgux*)
  14836. version_type=linux # correct to gnu/linux during the next big refactor
  14837. need_lib_prefix=no
  14838. need_version=no
  14839. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14840. soname_spec='$libname$release$shared_ext$major'
  14841. shlibpath_var=LD_LIBRARY_PATH
  14842. ;;
  14843. freebsd* | dragonfly* | midnightbsd*)
  14844. # DragonFly does not have aout. When/if they implement a new
  14845. # versioning mechanism, adjust this.
  14846. if test -x /usr/bin/objformat; then
  14847. objformat=`/usr/bin/objformat`
  14848. else
  14849. case $host_os in
  14850. freebsd[23].*) objformat=aout ;;
  14851. *) objformat=elf ;;
  14852. esac
  14853. fi
  14854. version_type=freebsd-$objformat
  14855. case $version_type in
  14856. freebsd-elf*)
  14857. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14858. soname_spec='$libname$release$shared_ext$major'
  14859. need_version=no
  14860. need_lib_prefix=no
  14861. ;;
  14862. freebsd-*)
  14863. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14864. need_version=yes
  14865. ;;
  14866. esac
  14867. shlibpath_var=LD_LIBRARY_PATH
  14868. case $host_os in
  14869. freebsd2.*)
  14870. shlibpath_overrides_runpath=yes
  14871. ;;
  14872. freebsd3.[01]* | freebsdelf3.[01]*)
  14873. shlibpath_overrides_runpath=yes
  14874. hardcode_into_libs=yes
  14875. ;;
  14876. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14877. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14878. shlibpath_overrides_runpath=no
  14879. hardcode_into_libs=yes
  14880. ;;
  14881. *) # from 4.6 on, and DragonFly
  14882. shlibpath_overrides_runpath=yes
  14883. hardcode_into_libs=yes
  14884. ;;
  14885. esac
  14886. ;;
  14887. haiku*)
  14888. version_type=linux # correct to gnu/linux during the next big refactor
  14889. need_lib_prefix=no
  14890. need_version=no
  14891. dynamic_linker="$host_os runtime_loader"
  14892. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14893. soname_spec='$libname$release$shared_ext$major'
  14894. shlibpath_var=LIBRARY_PATH
  14895. shlibpath_overrides_runpath=no
  14896. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  14897. hardcode_into_libs=yes
  14898. ;;
  14899. hpux9* | hpux10* | hpux11*)
  14900. # Give a soname corresponding to the major version so that dld.sl refuses to
  14901. # link against other versions.
  14902. version_type=sunos
  14903. need_lib_prefix=no
  14904. need_version=no
  14905. case $host_cpu in
  14906. ia64*)
  14907. shrext_cmds='.so'
  14908. hardcode_into_libs=yes
  14909. dynamic_linker="$host_os dld.so"
  14910. shlibpath_var=LD_LIBRARY_PATH
  14911. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14912. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14913. soname_spec='$libname$release$shared_ext$major'
  14914. if test 32 = "$HPUX_IA64_MODE"; then
  14915. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14916. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  14917. else
  14918. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14919. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  14920. fi
  14921. ;;
  14922. hppa*64*)
  14923. shrext_cmds='.sl'
  14924. hardcode_into_libs=yes
  14925. dynamic_linker="$host_os dld.sl"
  14926. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14927. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14928. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14929. soname_spec='$libname$release$shared_ext$major'
  14930. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14931. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14932. ;;
  14933. *)
  14934. shrext_cmds='.sl'
  14935. dynamic_linker="$host_os dld.sl"
  14936. shlibpath_var=SHLIB_PATH
  14937. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14938. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14939. soname_spec='$libname$release$shared_ext$major'
  14940. ;;
  14941. esac
  14942. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  14943. postinstall_cmds='chmod 555 $lib'
  14944. # or fails outright, so override atomically:
  14945. install_override_mode=555
  14946. ;;
  14947. interix[3-9]*)
  14948. version_type=linux # correct to gnu/linux during the next big refactor
  14949. need_lib_prefix=no
  14950. need_version=no
  14951. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14952. soname_spec='$libname$release$shared_ext$major'
  14953. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14954. shlibpath_var=LD_LIBRARY_PATH
  14955. shlibpath_overrides_runpath=no
  14956. hardcode_into_libs=yes
  14957. ;;
  14958. irix5* | irix6* | nonstopux*)
  14959. case $host_os in
  14960. nonstopux*) version_type=nonstopux ;;
  14961. *)
  14962. if test yes = "$lt_cv_prog_gnu_ld"; then
  14963. version_type=linux # correct to gnu/linux during the next big refactor
  14964. else
  14965. version_type=irix
  14966. fi ;;
  14967. esac
  14968. need_lib_prefix=no
  14969. need_version=no
  14970. soname_spec='$libname$release$shared_ext$major'
  14971. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  14972. case $host_os in
  14973. irix5* | nonstopux*)
  14974. libsuff= shlibsuff=
  14975. ;;
  14976. *)
  14977. case $LD in # libtool.m4 will add one of these switches to LD
  14978. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14979. libsuff= shlibsuff= libmagic=32-bit;;
  14980. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14981. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14982. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14983. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14984. *) libsuff= shlibsuff= libmagic=never-match;;
  14985. esac
  14986. ;;
  14987. esac
  14988. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14989. shlibpath_overrides_runpath=no
  14990. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  14991. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  14992. hardcode_into_libs=yes
  14993. ;;
  14994. # No shared lib support for Linux oldld, aout, or coff.
  14995. linux*oldld* | linux*aout* | linux*coff*)
  14996. dynamic_linker=no
  14997. ;;
  14998. linux*android*)
  14999. version_type=none # Android doesn't support versioned libraries.
  15000. need_lib_prefix=no
  15001. need_version=no
  15002. library_names_spec='$libname$release$shared_ext'
  15003. soname_spec='$libname$release$shared_ext'
  15004. finish_cmds=
  15005. shlibpath_var=LD_LIBRARY_PATH
  15006. shlibpath_overrides_runpath=yes
  15007. # This implies no fast_install, which is unacceptable.
  15008. # Some rework will be needed to allow for fast_install
  15009. # before this can be enabled.
  15010. hardcode_into_libs=yes
  15011. dynamic_linker='Android linker'
  15012. # Don't embed -rpath directories since the linker doesn't support them.
  15013. hardcode_libdir_flag_spec_CXX='-L$libdir'
  15014. ;;
  15015. # This must be glibc/ELF.
  15016. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  15017. version_type=linux # correct to gnu/linux during the next big refactor
  15018. need_lib_prefix=no
  15019. need_version=no
  15020. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15021. soname_spec='$libname$release$shared_ext$major'
  15022. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  15023. shlibpath_var=LD_LIBRARY_PATH
  15024. shlibpath_overrides_runpath=no
  15025. # Some binutils ld are patched to set DT_RUNPATH
  15026. if test ${lt_cv_shlibpath_overrides_runpath+y}
  15027. then :
  15028. printf %s "(cached) " >&6
  15029. else $as_nop
  15030. lt_cv_shlibpath_overrides_runpath=no
  15031. save_LDFLAGS=$LDFLAGS
  15032. save_libdir=$libdir
  15033. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  15034. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  15035. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15036. /* end confdefs.h. */
  15037. int
  15038. main (void)
  15039. {
  15040. ;
  15041. return 0;
  15042. }
  15043. _ACEOF
  15044. if ac_fn_cxx_try_link "$LINENO"
  15045. then :
  15046. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  15047. then :
  15048. lt_cv_shlibpath_overrides_runpath=yes
  15049. fi
  15050. fi
  15051. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  15052. conftest$ac_exeext conftest.$ac_ext
  15053. LDFLAGS=$save_LDFLAGS
  15054. libdir=$save_libdir
  15055. fi
  15056. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  15057. # This implies no fast_install, which is unacceptable.
  15058. # Some rework will be needed to allow for fast_install
  15059. # before this can be enabled.
  15060. hardcode_into_libs=yes
  15061. # Add ABI-specific directories to the system library path.
  15062. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  15063. # Ideally, we could use ldconfig to report *all* directores which are
  15064. # searched for libraries, however this is still not possible. Aside from not
  15065. # being certain /sbin/ldconfig is available, command
  15066. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  15067. # even though it is searched at run-time. Try to do the best guess by
  15068. # appending ld.so.conf contents (and includes) to the search path.
  15069. if test -f /etc/ld.so.conf; then
  15070. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  15071. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  15072. fi
  15073. # We used to test for /lib/ld.so.1 and disable shared libraries on
  15074. # powerpc, because MkLinux only supported shared libraries with the
  15075. # GNU dynamic linker. Since this was broken with cross compilers,
  15076. # most powerpc-linux boxes support dynamic linking these days and
  15077. # people can always --disable-shared, the test was removed, and we
  15078. # assume the GNU/Linux dynamic linker is in use.
  15079. dynamic_linker='GNU/Linux ld.so'
  15080. ;;
  15081. netbsd*)
  15082. version_type=sunos
  15083. need_lib_prefix=no
  15084. need_version=no
  15085. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  15086. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15087. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15088. dynamic_linker='NetBSD (a.out) ld.so'
  15089. else
  15090. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15091. soname_spec='$libname$release$shared_ext$major'
  15092. dynamic_linker='NetBSD ld.elf_so'
  15093. fi
  15094. shlibpath_var=LD_LIBRARY_PATH
  15095. shlibpath_overrides_runpath=yes
  15096. hardcode_into_libs=yes
  15097. ;;
  15098. newsos6)
  15099. version_type=linux # correct to gnu/linux during the next big refactor
  15100. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15101. shlibpath_var=LD_LIBRARY_PATH
  15102. shlibpath_overrides_runpath=yes
  15103. ;;
  15104. *nto* | *qnx*)
  15105. version_type=qnx
  15106. need_lib_prefix=no
  15107. need_version=no
  15108. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15109. soname_spec='$libname$release$shared_ext$major'
  15110. shlibpath_var=LD_LIBRARY_PATH
  15111. shlibpath_overrides_runpath=no
  15112. hardcode_into_libs=yes
  15113. dynamic_linker='ldqnx.so'
  15114. ;;
  15115. openbsd* | bitrig*)
  15116. version_type=sunos
  15117. sys_lib_dlsearch_path_spec=/usr/lib
  15118. need_lib_prefix=no
  15119. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  15120. need_version=no
  15121. else
  15122. need_version=yes
  15123. fi
  15124. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15125. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15126. shlibpath_var=LD_LIBRARY_PATH
  15127. shlibpath_overrides_runpath=yes
  15128. ;;
  15129. os2*)
  15130. libname_spec='$name'
  15131. shrext_cmds=.dll
  15132. need_lib_prefix=no
  15133. # OS/2 can only load a DLL with a base name of 8 characters or less.
  15134. # SDL customization: removed versioning support.
  15135. # version_type=windows
  15136. # need_version=no
  15137. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  15138. # v=$($ECHO $release$versuffix | tr -d .-);
  15139. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  15140. # $ECHO $n$v`$shared_ext'
  15141. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  15142. library_names_spec='${libname}_dll.$libext'
  15143. dynamic_linker='OS/2 ld.exe'
  15144. shlibpath_var=BEGINLIBPATH
  15145. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  15146. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15147. postinstall_cmds='base_file=`basename \$file`~
  15148. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  15149. dldir=$destdir/`dirname \$dlpath`~
  15150. test -d \$dldir || mkdir -p \$dldir~
  15151. $install_prog $dir/$dlname \$dldir/$dlname~
  15152. chmod a+x \$dldir/$dlname~
  15153. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  15154. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  15155. fi'
  15156. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  15157. dlpath=$dir/\$dldll~
  15158. $RM \$dlpath'
  15159. ;;
  15160. osf3* | osf4* | osf5*)
  15161. version_type=osf
  15162. need_lib_prefix=no
  15163. need_version=no
  15164. soname_spec='$libname$release$shared_ext$major'
  15165. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15166. shlibpath_var=LD_LIBRARY_PATH
  15167. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15168. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15169. ;;
  15170. rdos*)
  15171. dynamic_linker=no
  15172. ;;
  15173. solaris*)
  15174. version_type=linux # correct to gnu/linux during the next big refactor
  15175. need_lib_prefix=no
  15176. need_version=no
  15177. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15178. soname_spec='$libname$release$shared_ext$major'
  15179. shlibpath_var=LD_LIBRARY_PATH
  15180. shlibpath_overrides_runpath=yes
  15181. hardcode_into_libs=yes
  15182. # ldd complains unless libraries are executable
  15183. postinstall_cmds='chmod +x $lib'
  15184. ;;
  15185. sunos4*)
  15186. version_type=sunos
  15187. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15188. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15189. shlibpath_var=LD_LIBRARY_PATH
  15190. shlibpath_overrides_runpath=yes
  15191. if test yes = "$with_gnu_ld"; then
  15192. need_lib_prefix=no
  15193. fi
  15194. need_version=yes
  15195. ;;
  15196. sysv4 | sysv4.3*)
  15197. version_type=linux # correct to gnu/linux during the next big refactor
  15198. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15199. soname_spec='$libname$release$shared_ext$major'
  15200. shlibpath_var=LD_LIBRARY_PATH
  15201. case $host_vendor in
  15202. sni)
  15203. shlibpath_overrides_runpath=no
  15204. need_lib_prefix=no
  15205. runpath_var=LD_RUN_PATH
  15206. ;;
  15207. siemens)
  15208. need_lib_prefix=no
  15209. ;;
  15210. motorola)
  15211. need_lib_prefix=no
  15212. need_version=no
  15213. shlibpath_overrides_runpath=no
  15214. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15215. ;;
  15216. esac
  15217. ;;
  15218. sysv4*MP*)
  15219. if test -d /usr/nec; then
  15220. version_type=linux # correct to gnu/linux during the next big refactor
  15221. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  15222. soname_spec='$libname$shared_ext.$major'
  15223. shlibpath_var=LD_LIBRARY_PATH
  15224. fi
  15225. ;;
  15226. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  15227. version_type=sco
  15228. need_lib_prefix=no
  15229. need_version=no
  15230. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  15231. soname_spec='$libname$release$shared_ext$major'
  15232. shlibpath_var=LD_LIBRARY_PATH
  15233. shlibpath_overrides_runpath=yes
  15234. hardcode_into_libs=yes
  15235. if test yes = "$with_gnu_ld"; then
  15236. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  15237. else
  15238. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  15239. case $host_os in
  15240. sco3.2v5*)
  15241. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  15242. ;;
  15243. esac
  15244. fi
  15245. sys_lib_dlsearch_path_spec='/usr/lib'
  15246. ;;
  15247. tpf*)
  15248. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  15249. version_type=linux # correct to gnu/linux during the next big refactor
  15250. need_lib_prefix=no
  15251. need_version=no
  15252. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15253. shlibpath_var=LD_LIBRARY_PATH
  15254. shlibpath_overrides_runpath=no
  15255. hardcode_into_libs=yes
  15256. ;;
  15257. uts4*)
  15258. version_type=linux # correct to gnu/linux during the next big refactor
  15259. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15260. soname_spec='$libname$release$shared_ext$major'
  15261. shlibpath_var=LD_LIBRARY_PATH
  15262. ;;
  15263. *)
  15264. dynamic_linker=no
  15265. ;;
  15266. esac
  15267. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  15268. printf "%s\n" "$dynamic_linker" >&6; }
  15269. test no = "$dynamic_linker" && can_build_shared=no
  15270. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  15271. if test yes = "$GCC"; then
  15272. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  15273. fi
  15274. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  15275. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  15276. fi
  15277. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  15278. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  15279. fi
  15280. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  15281. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  15282. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  15283. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  15284. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  15285. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  15286. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  15287. printf %s "checking how to hardcode library paths into programs... " >&6; }
  15288. hardcode_action_CXX=
  15289. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  15290. test -n "$runpath_var_CXX" ||
  15291. test yes = "$hardcode_automatic_CXX"; then
  15292. # We can hardcode non-existent directories.
  15293. if test no != "$hardcode_direct_CXX" &&
  15294. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  15295. # have to relink, otherwise we might link with an installed library
  15296. # when we should be linking with a yet-to-be-installed one
  15297. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  15298. test no != "$hardcode_minus_L_CXX"; then
  15299. # Linking always hardcodes the temporary library directory.
  15300. hardcode_action_CXX=relink
  15301. else
  15302. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  15303. hardcode_action_CXX=immediate
  15304. fi
  15305. else
  15306. # We cannot hardcode anything, or else we can only hardcode existing
  15307. # directories.
  15308. hardcode_action_CXX=unsupported
  15309. fi
  15310. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  15311. printf "%s\n" "$hardcode_action_CXX" >&6; }
  15312. if test relink = "$hardcode_action_CXX" ||
  15313. test yes = "$inherit_rpath_CXX"; then
  15314. # Fast installation is not supported
  15315. enable_fast_install=no
  15316. elif test yes = "$shlibpath_overrides_runpath" ||
  15317. test no = "$enable_shared"; then
  15318. # Fast installation is not necessary
  15319. enable_fast_install=needless
  15320. fi
  15321. fi # test -n "$compiler"
  15322. CC=$lt_save_CC
  15323. CFLAGS=$lt_save_CFLAGS
  15324. LDCXX=$LD
  15325. LD=$lt_save_LD
  15326. GCC=$lt_save_GCC
  15327. with_gnu_ld=$lt_save_with_gnu_ld
  15328. lt_cv_path_LDCXX=$lt_cv_path_LD
  15329. lt_cv_path_LD=$lt_save_path_LD
  15330. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  15331. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  15332. fi # test yes != "$_lt_caught_CXX_error"
  15333. ac_ext=c
  15334. ac_cpp='$CPP $CPPFLAGS'
  15335. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15336. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15337. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15338. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  15339. printf %s "checking for egrep... " >&6; }
  15340. if test ${ac_cv_path_EGREP+y}
  15341. then :
  15342. printf %s "(cached) " >&6
  15343. else $as_nop
  15344. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  15345. then ac_cv_path_EGREP="$GREP -E"
  15346. else
  15347. if test -z "$EGREP"; then
  15348. ac_path_EGREP_found=false
  15349. # Loop through the user's path and test for each of PROGNAME-LIST
  15350. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15351. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  15352. do
  15353. IFS=$as_save_IFS
  15354. case $as_dir in #(((
  15355. '') as_dir=./ ;;
  15356. */) ;;
  15357. *) as_dir=$as_dir/ ;;
  15358. esac
  15359. for ac_prog in egrep
  15360. do
  15361. for ac_exec_ext in '' $ac_executable_extensions; do
  15362. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  15363. as_fn_executable_p "$ac_path_EGREP" || continue
  15364. # Check for GNU ac_path_EGREP and select it if it is found.
  15365. # Check for GNU $ac_path_EGREP
  15366. case `"$ac_path_EGREP" --version 2>&1` in
  15367. *GNU*)
  15368. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  15369. *)
  15370. ac_count=0
  15371. printf %s 0123456789 >"conftest.in"
  15372. while :
  15373. do
  15374. cat "conftest.in" "conftest.in" >"conftest.tmp"
  15375. mv "conftest.tmp" "conftest.in"
  15376. cp "conftest.in" "conftest.nl"
  15377. printf "%s\n" 'EGREP' >> "conftest.nl"
  15378. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  15379. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  15380. as_fn_arith $ac_count + 1 && ac_count=$as_val
  15381. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  15382. # Best one so far, save it but keep looking for a better one
  15383. ac_cv_path_EGREP="$ac_path_EGREP"
  15384. ac_path_EGREP_max=$ac_count
  15385. fi
  15386. # 10*(2^10) chars as input seems more than enough
  15387. test $ac_count -gt 10 && break
  15388. done
  15389. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  15390. esac
  15391. $ac_path_EGREP_found && break 3
  15392. done
  15393. done
  15394. done
  15395. IFS=$as_save_IFS
  15396. if test -z "$ac_cv_path_EGREP"; then
  15397. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  15398. fi
  15399. else
  15400. ac_cv_path_EGREP=$EGREP
  15401. fi
  15402. fi
  15403. fi
  15404. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  15405. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  15406. EGREP="$ac_cv_path_EGREP"
  15407. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  15408. printf %s "checking for fgrep... " >&6; }
  15409. if test ${ac_cv_path_FGREP+y}
  15410. then :
  15411. printf %s "(cached) " >&6
  15412. else $as_nop
  15413. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  15414. then ac_cv_path_FGREP="$GREP -F"
  15415. else
  15416. if test -z "$FGREP"; then
  15417. ac_path_FGREP_found=false
  15418. # Loop through the user's path and test for each of PROGNAME-LIST
  15419. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15420. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  15421. do
  15422. IFS=$as_save_IFS
  15423. case $as_dir in #(((
  15424. '') as_dir=./ ;;
  15425. */) ;;
  15426. *) as_dir=$as_dir/ ;;
  15427. esac
  15428. for ac_prog in fgrep
  15429. do
  15430. for ac_exec_ext in '' $ac_executable_extensions; do
  15431. ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
  15432. as_fn_executable_p "$ac_path_FGREP" || continue
  15433. # Check for GNU ac_path_FGREP and select it if it is found.
  15434. # Check for GNU $ac_path_FGREP
  15435. case `"$ac_path_FGREP" --version 2>&1` in
  15436. *GNU*)
  15437. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  15438. *)
  15439. ac_count=0
  15440. printf %s 0123456789 >"conftest.in"
  15441. while :
  15442. do
  15443. cat "conftest.in" "conftest.in" >"conftest.tmp"
  15444. mv "conftest.tmp" "conftest.in"
  15445. cp "conftest.in" "conftest.nl"
  15446. printf "%s\n" 'FGREP' >> "conftest.nl"
  15447. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  15448. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  15449. as_fn_arith $ac_count + 1 && ac_count=$as_val
  15450. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  15451. # Best one so far, save it but keep looking for a better one
  15452. ac_cv_path_FGREP="$ac_path_FGREP"
  15453. ac_path_FGREP_max=$ac_count
  15454. fi
  15455. # 10*(2^10) chars as input seems more than enough
  15456. test $ac_count -gt 10 && break
  15457. done
  15458. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  15459. esac
  15460. $ac_path_FGREP_found && break 3
  15461. done
  15462. done
  15463. done
  15464. IFS=$as_save_IFS
  15465. if test -z "$ac_cv_path_FGREP"; then
  15466. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  15467. fi
  15468. else
  15469. ac_cv_path_FGREP=$FGREP
  15470. fi
  15471. fi
  15472. fi
  15473. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  15474. printf "%s\n" "$ac_cv_path_FGREP" >&6; }
  15475. FGREP="$ac_cv_path_FGREP"
  15476. # Find a good install program. We prefer a C program (faster),
  15477. # so one script is as good as another. But avoid the broken or
  15478. # incompatible versions:
  15479. # SysV /etc/install, /usr/sbin/install
  15480. # SunOS /usr/etc/install
  15481. # IRIX /sbin/install
  15482. # AIX /bin/install
  15483. # AmigaOS /C/install, which installs bootblocks on floppy discs
  15484. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  15485. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  15486. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  15487. # OS/2's system install, which has a completely different semantic
  15488. # ./install, which can be erroneously created by make from ./install.sh.
  15489. # Reject install programs that cannot install multiple files.
  15490. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  15491. printf %s "checking for a BSD-compatible install... " >&6; }
  15492. if test -z "$INSTALL"; then
  15493. if test ${ac_cv_path_install+y}
  15494. then :
  15495. printf %s "(cached) " >&6
  15496. else $as_nop
  15497. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15498. for as_dir in $PATH
  15499. do
  15500. IFS=$as_save_IFS
  15501. case $as_dir in #(((
  15502. '') as_dir=./ ;;
  15503. */) ;;
  15504. *) as_dir=$as_dir/ ;;
  15505. esac
  15506. # Account for fact that we put trailing slashes in our PATH walk.
  15507. case $as_dir in #((
  15508. ./ | /[cC]/* | \
  15509. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  15510. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  15511. /usr/ucb/* ) ;;
  15512. *)
  15513. # OSF1 and SCO ODT 3.0 have their own names for install.
  15514. # Don't use installbsd from OSF since it installs stuff as root
  15515. # by default.
  15516. for ac_prog in ginstall scoinst install; do
  15517. for ac_exec_ext in '' $ac_executable_extensions; do
  15518. if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
  15519. if test $ac_prog = install &&
  15520. grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  15521. # AIX install. It has an incompatible calling convention.
  15522. :
  15523. elif test $ac_prog = install &&
  15524. grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  15525. # program-specific install script used by HP pwplus--don't use.
  15526. :
  15527. else
  15528. rm -rf conftest.one conftest.two conftest.dir
  15529. echo one > conftest.one
  15530. echo two > conftest.two
  15531. mkdir conftest.dir
  15532. if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
  15533. test -s conftest.one && test -s conftest.two &&
  15534. test -s conftest.dir/conftest.one &&
  15535. test -s conftest.dir/conftest.two
  15536. then
  15537. ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
  15538. break 3
  15539. fi
  15540. fi
  15541. fi
  15542. done
  15543. done
  15544. ;;
  15545. esac
  15546. done
  15547. IFS=$as_save_IFS
  15548. rm -rf conftest.one conftest.two conftest.dir
  15549. fi
  15550. if test ${ac_cv_path_install+y}; then
  15551. INSTALL=$ac_cv_path_install
  15552. else
  15553. # As a last resort, use the slow shell script. Don't cache a
  15554. # value for INSTALL within a source directory, because that will
  15555. # break other packages using the cache if that directory is
  15556. # removed, or if the value is a relative name.
  15557. INSTALL=$ac_install_sh
  15558. fi
  15559. fi
  15560. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  15561. printf "%s\n" "$INSTALL" >&6; }
  15562. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  15563. # It thinks the first close brace ends the variable substitution.
  15564. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  15565. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  15566. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  15567. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  15568. printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  15569. set x ${MAKE-make}
  15570. ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  15571. if eval test \${ac_cv_prog_make_${ac_make}_set+y}
  15572. then :
  15573. printf %s "(cached) " >&6
  15574. else $as_nop
  15575. cat >conftest.make <<\_ACEOF
  15576. SHELL = /bin/sh
  15577. all:
  15578. @echo '@@@%%%=$(MAKE)=@@@%%%'
  15579. _ACEOF
  15580. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  15581. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  15582. *@@@%%%=?*=@@@%%%*)
  15583. eval ac_cv_prog_make_${ac_make}_set=yes;;
  15584. *)
  15585. eval ac_cv_prog_make_${ac_make}_set=no;;
  15586. esac
  15587. rm -f conftest.make
  15588. fi
  15589. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  15590. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15591. printf "%s\n" "yes" >&6; }
  15592. SET_MAKE=
  15593. else
  15594. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15595. printf "%s\n" "no" >&6; }
  15596. SET_MAKE="MAKE=${MAKE-make}"
  15597. fi
  15598. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  15599. if test -n "$ac_tool_prefix"; then
  15600. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  15601. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  15602. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15603. printf %s "checking for $ac_word... " >&6; }
  15604. if test ${ac_cv_path_PKG_CONFIG+y}
  15605. then :
  15606. printf %s "(cached) " >&6
  15607. else $as_nop
  15608. case $PKG_CONFIG in
  15609. [\\/]* | ?:[\\/]*)
  15610. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15611. ;;
  15612. *)
  15613. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15614. for as_dir in $PATH
  15615. do
  15616. IFS=$as_save_IFS
  15617. case $as_dir in #(((
  15618. '') as_dir=./ ;;
  15619. */) ;;
  15620. *) as_dir=$as_dir/ ;;
  15621. esac
  15622. for ac_exec_ext in '' $ac_executable_extensions; do
  15623. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15624. ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  15625. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15626. break 2
  15627. fi
  15628. done
  15629. done
  15630. IFS=$as_save_IFS
  15631. ;;
  15632. esac
  15633. fi
  15634. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15635. if test -n "$PKG_CONFIG"; then
  15636. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15637. printf "%s\n" "$PKG_CONFIG" >&6; }
  15638. else
  15639. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15640. printf "%s\n" "no" >&6; }
  15641. fi
  15642. fi
  15643. if test -z "$ac_cv_path_PKG_CONFIG"; then
  15644. ac_pt_PKG_CONFIG=$PKG_CONFIG
  15645. # Extract the first word of "pkg-config", so it can be a program name with args.
  15646. set dummy pkg-config; ac_word=$2
  15647. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15648. printf %s "checking for $ac_word... " >&6; }
  15649. if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
  15650. then :
  15651. printf %s "(cached) " >&6
  15652. else $as_nop
  15653. case $ac_pt_PKG_CONFIG in
  15654. [\\/]* | ?:[\\/]*)
  15655. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  15656. ;;
  15657. *)
  15658. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15659. for as_dir in $PATH
  15660. do
  15661. IFS=$as_save_IFS
  15662. case $as_dir in #(((
  15663. '') as_dir=./ ;;
  15664. */) ;;
  15665. *) as_dir=$as_dir/ ;;
  15666. esac
  15667. for ac_exec_ext in '' $ac_executable_extensions; do
  15668. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15669. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  15670. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15671. break 2
  15672. fi
  15673. done
  15674. done
  15675. IFS=$as_save_IFS
  15676. ;;
  15677. esac
  15678. fi
  15679. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  15680. if test -n "$ac_pt_PKG_CONFIG"; then
  15681. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  15682. printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
  15683. else
  15684. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15685. printf "%s\n" "no" >&6; }
  15686. fi
  15687. if test "x$ac_pt_PKG_CONFIG" = x; then
  15688. PKG_CONFIG=""
  15689. else
  15690. case $cross_compiling:$ac_tool_warned in
  15691. yes:)
  15692. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  15693. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  15694. ac_tool_warned=yes ;;
  15695. esac
  15696. PKG_CONFIG=$ac_pt_PKG_CONFIG
  15697. fi
  15698. else
  15699. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  15700. fi
  15701. fi
  15702. if test -n "$PKG_CONFIG"; then
  15703. _pkg_min_version=0.9.0
  15704. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  15705. printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  15706. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  15707. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15708. printf "%s\n" "yes" >&6; }
  15709. else
  15710. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15711. printf "%s\n" "no" >&6; }
  15712. PKG_CONFIG=""
  15713. fi
  15714. fi
  15715. if test -z "$AWK" ; then
  15716. as_fn_error $? "*** awk not found, aborting" "$LINENO" 5
  15717. fi
  15718. for ac_prog in gsort sort
  15719. do
  15720. # Extract the first word of "$ac_prog", so it can be a program name with args.
  15721. set dummy $ac_prog; ac_word=$2
  15722. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15723. printf %s "checking for $ac_word... " >&6; }
  15724. if test ${ac_cv_prog_SORT+y}
  15725. then :
  15726. printf %s "(cached) " >&6
  15727. else $as_nop
  15728. if test -n "$SORT"; then
  15729. ac_cv_prog_SORT="$SORT" # Let the user override the test.
  15730. else
  15731. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15732. for as_dir in $PATH
  15733. do
  15734. IFS=$as_save_IFS
  15735. case $as_dir in #(((
  15736. '') as_dir=./ ;;
  15737. */) ;;
  15738. *) as_dir=$as_dir/ ;;
  15739. esac
  15740. for ac_exec_ext in '' $ac_executable_extensions; do
  15741. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15742. ac_cv_prog_SORT="$ac_prog"
  15743. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15744. break 2
  15745. fi
  15746. done
  15747. done
  15748. IFS=$as_save_IFS
  15749. fi
  15750. fi
  15751. SORT=$ac_cv_prog_SORT
  15752. if test -n "$SORT"; then
  15753. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
  15754. printf "%s\n" "$SORT" >&6; }
  15755. else
  15756. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15757. printf "%s\n" "no" >&6; }
  15758. fi
  15759. test -n "$SORT" && break
  15760. done
  15761. test -n "$SORT" || SORT="false"
  15762. if ! "$SORT" -V </dev/null >/dev/null
  15763. then :
  15764. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: sort(1) that supports the -V option is required to find dynamic libraries" >&5
  15765. printf "%s\n" "$as_me: WARNING: sort(1) that supports the -V option is required to find dynamic libraries" >&2;}
  15766. fi
  15767. # Check whether --enable-largefile was given.
  15768. if test ${enable_largefile+y}
  15769. then :
  15770. enableval=$enable_largefile;
  15771. fi
  15772. if test "$enable_largefile" != no; then
  15773. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  15774. printf %s "checking for special C compiler options needed for large files... " >&6; }
  15775. if test ${ac_cv_sys_largefile_CC+y}
  15776. then :
  15777. printf %s "(cached) " >&6
  15778. else $as_nop
  15779. ac_cv_sys_largefile_CC=no
  15780. if test "$GCC" != yes; then
  15781. ac_save_CC=$CC
  15782. while :; do
  15783. # IRIX 6.2 and later do not support large files by default,
  15784. # so use the C compiler's -n32 option if that helps.
  15785. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15786. /* end confdefs.h. */
  15787. #include <sys/types.h>
  15788. /* Check that off_t can represent 2**63 - 1 correctly.
  15789. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15790. since some C++ compilers masquerading as C compilers
  15791. incorrectly reject 9223372036854775807. */
  15792. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15793. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15794. && LARGE_OFF_T % 2147483647 == 1)
  15795. ? 1 : -1];
  15796. int
  15797. main (void)
  15798. {
  15799. ;
  15800. return 0;
  15801. }
  15802. _ACEOF
  15803. if ac_fn_c_try_compile "$LINENO"
  15804. then :
  15805. break
  15806. fi
  15807. rm -f core conftest.err conftest.$ac_objext conftest.beam
  15808. CC="$CC -n32"
  15809. if ac_fn_c_try_compile "$LINENO"
  15810. then :
  15811. ac_cv_sys_largefile_CC=' -n32'; break
  15812. fi
  15813. rm -f core conftest.err conftest.$ac_objext conftest.beam
  15814. break
  15815. done
  15816. CC=$ac_save_CC
  15817. rm -f conftest.$ac_ext
  15818. fi
  15819. fi
  15820. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  15821. printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
  15822. if test "$ac_cv_sys_largefile_CC" != no; then
  15823. CC=$CC$ac_cv_sys_largefile_CC
  15824. fi
  15825. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  15826. printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  15827. if test ${ac_cv_sys_file_offset_bits+y}
  15828. then :
  15829. printf %s "(cached) " >&6
  15830. else $as_nop
  15831. while :; do
  15832. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15833. /* end confdefs.h. */
  15834. #include <sys/types.h>
  15835. /* Check that off_t can represent 2**63 - 1 correctly.
  15836. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15837. since some C++ compilers masquerading as C compilers
  15838. incorrectly reject 9223372036854775807. */
  15839. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15840. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15841. && LARGE_OFF_T % 2147483647 == 1)
  15842. ? 1 : -1];
  15843. int
  15844. main (void)
  15845. {
  15846. ;
  15847. return 0;
  15848. }
  15849. _ACEOF
  15850. if ac_fn_c_try_compile "$LINENO"
  15851. then :
  15852. ac_cv_sys_file_offset_bits=no; break
  15853. fi
  15854. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15855. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15856. /* end confdefs.h. */
  15857. #define _FILE_OFFSET_BITS 64
  15858. #include <sys/types.h>
  15859. /* Check that off_t can represent 2**63 - 1 correctly.
  15860. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15861. since some C++ compilers masquerading as C compilers
  15862. incorrectly reject 9223372036854775807. */
  15863. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15864. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15865. && LARGE_OFF_T % 2147483647 == 1)
  15866. ? 1 : -1];
  15867. int
  15868. main (void)
  15869. {
  15870. ;
  15871. return 0;
  15872. }
  15873. _ACEOF
  15874. if ac_fn_c_try_compile "$LINENO"
  15875. then :
  15876. ac_cv_sys_file_offset_bits=64; break
  15877. fi
  15878. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15879. ac_cv_sys_file_offset_bits=unknown
  15880. break
  15881. done
  15882. fi
  15883. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  15884. printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
  15885. case $ac_cv_sys_file_offset_bits in #(
  15886. no | unknown) ;;
  15887. *)
  15888. printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
  15889. ;;
  15890. esac
  15891. rm -rf conftest*
  15892. if test $ac_cv_sys_file_offset_bits = unknown; then
  15893. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  15894. printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
  15895. if test ${ac_cv_sys_large_files+y}
  15896. then :
  15897. printf %s "(cached) " >&6
  15898. else $as_nop
  15899. while :; do
  15900. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15901. /* end confdefs.h. */
  15902. #include <sys/types.h>
  15903. /* Check that off_t can represent 2**63 - 1 correctly.
  15904. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15905. since some C++ compilers masquerading as C compilers
  15906. incorrectly reject 9223372036854775807. */
  15907. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15908. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15909. && LARGE_OFF_T % 2147483647 == 1)
  15910. ? 1 : -1];
  15911. int
  15912. main (void)
  15913. {
  15914. ;
  15915. return 0;
  15916. }
  15917. _ACEOF
  15918. if ac_fn_c_try_compile "$LINENO"
  15919. then :
  15920. ac_cv_sys_large_files=no; break
  15921. fi
  15922. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15923. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15924. /* end confdefs.h. */
  15925. #define _LARGE_FILES 1
  15926. #include <sys/types.h>
  15927. /* Check that off_t can represent 2**63 - 1 correctly.
  15928. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15929. since some C++ compilers masquerading as C compilers
  15930. incorrectly reject 9223372036854775807. */
  15931. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15932. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15933. && LARGE_OFF_T % 2147483647 == 1)
  15934. ? 1 : -1];
  15935. int
  15936. main (void)
  15937. {
  15938. ;
  15939. return 0;
  15940. }
  15941. _ACEOF
  15942. if ac_fn_c_try_compile "$LINENO"
  15943. then :
  15944. ac_cv_sys_large_files=1; break
  15945. fi
  15946. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15947. ac_cv_sys_large_files=unknown
  15948. break
  15949. done
  15950. fi
  15951. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  15952. printf "%s\n" "$ac_cv_sys_large_files" >&6; }
  15953. case $ac_cv_sys_large_files in #(
  15954. no | unknown) ;;
  15955. *)
  15956. printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
  15957. ;;
  15958. esac
  15959. rm -rf conftest*
  15960. fi
  15961. fi
  15962. case "$host" in
  15963. *-*-mingw*)
  15964. # Except on msys, where make can't handle full pathnames (bug 1972)
  15965. ;;
  15966. *)
  15967. srcdir=`cd $srcdir && pwd`
  15968. ;;
  15969. esac
  15970. INCLUDE="-I$srcdir/include"
  15971. case "$host" in
  15972. *-*-nto-qnx*)
  15973. ;;
  15974. *)
  15975. INCLUDE="$INCLUDE -idirafter $srcdir/src/video/khronos"
  15976. ;;
  15977. esac
  15978. case "$host" in
  15979. *-*-haiku*)
  15980. LINKER='$(CXX)'
  15981. LIBTOOLLINKERTAG='CXX'
  15982. ;;
  15983. *)
  15984. LINKER='$(CC)'
  15985. LIBTOOLLINKERTAG='CC'
  15986. ;;
  15987. esac
  15988. if test x$srcdir != x.; then
  15989. INCLUDE="-Iinclude $INCLUDE"
  15990. elif test -d .git; then
  15991. as_fn_error $? "
  15992. *** When building from a git clone you should configure and build in a
  15993. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  15994. " "$LINENO" 5
  15995. fi
  15996. BASE_CFLAGS=""
  15997. BASE_LDFLAGS=""
  15998. case "$host" in
  15999. *-*-cygwin*)
  16000. # We build SDL on cygwin without the UNIX emulation layer
  16001. save_CFLAGS="$CFLAGS"
  16002. have_no_cygwin=no
  16003. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  16004. printf %s "checking for GCC -mno-cygwin option... " >&6; }
  16005. CFLAGS="$save_CFLAGS -mno-cygwin"
  16006. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16007. /* end confdefs.h. */
  16008. int
  16009. main (void)
  16010. {
  16011. ;
  16012. return 0;
  16013. }
  16014. _ACEOF
  16015. if ac_fn_c_try_compile "$LINENO"
  16016. then :
  16017. have_no_cygwin=yes
  16018. fi
  16019. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16020. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  16021. printf "%s\n" "$have_no_cygwin" >&6; }
  16022. CFLAGS="$save_CFLAGS"
  16023. if test x$have_no_cygwin = xyes; then
  16024. BASE_CFLAGS="-mno-cygwin"
  16025. BASE_LDFLAGS="-mno-cygwin"
  16026. fi
  16027. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  16028. ;;
  16029. esac
  16030. # Uncomment the following line if you want to force SDL and applications
  16031. # built with it to be compiled for a particular architecture.
  16032. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  16033. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  16034. # The default optimization for SDL is -O3 (Bug #31)
  16035. if test "x$orig_CFLAGS" = x; then
  16036. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  16037. fi
  16038. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  16039. BUILD_LDFLAGS="$LDFLAGS"
  16040. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  16041. ## These are common directories to find software packages
  16042. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  16043. # if test -d $path/include; then
  16044. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  16045. # fi
  16046. # if test -d $path/lib; then
  16047. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  16048. # fi
  16049. #done
  16050. SDL_CFLAGS="$BASE_CFLAGS"
  16051. SDL_LIBS="-lSDL2"
  16052. if test "x$BASE_LDFLAGS" != x; then
  16053. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  16054. fi
  16055. if test "x$EXTRA_CFLAGS" != x; then
  16056. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  16057. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  16058. fi
  16059. if test "x$EXTRA_LDFLAGS" != x; then
  16060. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  16061. fi
  16062. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  16063. find_lib()
  16064. {
  16065. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | $FGREP programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  16066. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | $FGREP libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  16067. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  16068. if test "$cross_compiling" = yes; then
  16069. host_lib_path=""
  16070. else
  16071. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  16072. fi
  16073. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  16074. lib=`ls -- $path/$1 2>/dev/null | sed 's,.*/,,' | "$SORT" -V -r | $AWK 'BEGIN{FS="."}{ print NF, $0 }' | "$SORT" -n -s | sed 's,[0-9]* ,,' | head -1`
  16075. if test x$lib != x; then
  16076. echo $lib
  16077. return
  16078. fi
  16079. done
  16080. }
  16081. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  16082. printf %s "checking for an ANSI C-conforming const... " >&6; }
  16083. if test ${ac_cv_c_const+y}
  16084. then :
  16085. printf %s "(cached) " >&6
  16086. else $as_nop
  16087. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16088. /* end confdefs.h. */
  16089. int
  16090. main (void)
  16091. {
  16092. #ifndef __cplusplus
  16093. /* Ultrix mips cc rejects this sort of thing. */
  16094. typedef int charset[2];
  16095. const charset cs = { 0, 0 };
  16096. /* SunOS 4.1.1 cc rejects this. */
  16097. char const *const *pcpcc;
  16098. char **ppc;
  16099. /* NEC SVR4.0.2 mips cc rejects this. */
  16100. struct point {int x, y;};
  16101. static struct point const zero = {0,0};
  16102. /* IBM XL C 1.02.0.0 rejects this.
  16103. It does not let you subtract one const X* pointer from another in
  16104. an arm of an if-expression whose if-part is not a constant
  16105. expression */
  16106. const char *g = "string";
  16107. pcpcc = &g + (g ? g-g : 0);
  16108. /* HPUX 7.0 cc rejects these. */
  16109. ++pcpcc;
  16110. ppc = (char**) pcpcc;
  16111. pcpcc = (char const *const *) ppc;
  16112. { /* SCO 3.2v4 cc rejects this sort of thing. */
  16113. char tx;
  16114. char *t = &tx;
  16115. char const *s = 0 ? (char *) 0 : (char const *) 0;
  16116. *t++ = 0;
  16117. if (s) return 0;
  16118. }
  16119. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  16120. int x[] = {25, 17};
  16121. const int *foo = &x[0];
  16122. ++foo;
  16123. }
  16124. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  16125. typedef const int *iptr;
  16126. iptr p = 0;
  16127. ++p;
  16128. }
  16129. { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
  16130. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  16131. struct s { int j; const int *ap[3]; } bx;
  16132. struct s *b = &bx; b->j = 5;
  16133. }
  16134. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  16135. const int foo = 10;
  16136. if (!foo) return 0;
  16137. }
  16138. return !cs[0] && !zero.x;
  16139. #endif
  16140. ;
  16141. return 0;
  16142. }
  16143. _ACEOF
  16144. if ac_fn_c_try_compile "$LINENO"
  16145. then :
  16146. ac_cv_c_const=yes
  16147. else $as_nop
  16148. ac_cv_c_const=no
  16149. fi
  16150. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16151. fi
  16152. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  16153. printf "%s\n" "$ac_cv_c_const" >&6; }
  16154. if test $ac_cv_c_const = no; then
  16155. printf "%s\n" "#define const /**/" >>confdefs.h
  16156. fi
  16157. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  16158. printf %s "checking for inline... " >&6; }
  16159. if test ${ac_cv_c_inline+y}
  16160. then :
  16161. printf %s "(cached) " >&6
  16162. else $as_nop
  16163. ac_cv_c_inline=no
  16164. for ac_kw in inline __inline__ __inline; do
  16165. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16166. /* end confdefs.h. */
  16167. #ifndef __cplusplus
  16168. typedef int foo_t;
  16169. static $ac_kw foo_t static_foo (void) {return 0; }
  16170. $ac_kw foo_t foo (void) {return 0; }
  16171. #endif
  16172. _ACEOF
  16173. if ac_fn_c_try_compile "$LINENO"
  16174. then :
  16175. ac_cv_c_inline=$ac_kw
  16176. fi
  16177. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16178. test "$ac_cv_c_inline" != no && break
  16179. done
  16180. fi
  16181. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  16182. printf "%s\n" "$ac_cv_c_inline" >&6; }
  16183. case $ac_cv_c_inline in
  16184. inline | yes) ;;
  16185. *)
  16186. case $ac_cv_c_inline in
  16187. no) ac_val=;;
  16188. *) ac_val=$ac_cv_c_inline;;
  16189. esac
  16190. cat >>confdefs.h <<_ACEOF
  16191. #ifndef __cplusplus
  16192. #define inline $ac_val
  16193. #endif
  16194. _ACEOF
  16195. ;;
  16196. esac
  16197. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  16198. printf %s "checking for working volatile... " >&6; }
  16199. if test ${ac_cv_c_volatile+y}
  16200. then :
  16201. printf %s "(cached) " >&6
  16202. else $as_nop
  16203. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16204. /* end confdefs.h. */
  16205. int
  16206. main (void)
  16207. {
  16208. volatile int x;
  16209. int * volatile y = (int *) 0;
  16210. return !x && !y;
  16211. ;
  16212. return 0;
  16213. }
  16214. _ACEOF
  16215. if ac_fn_c_try_compile "$LINENO"
  16216. then :
  16217. ac_cv_c_volatile=yes
  16218. else $as_nop
  16219. ac_cv_c_volatile=no
  16220. fi
  16221. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16222. fi
  16223. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  16224. printf "%s\n" "$ac_cv_c_volatile" >&6; }
  16225. if test $ac_cv_c_volatile = no; then
  16226. printf "%s\n" "#define volatile /**/" >>confdefs.h
  16227. fi
  16228. # Check whether --enable-assertions was given.
  16229. if test ${enable_assertions+y}
  16230. then :
  16231. enableval=$enable_assertions;
  16232. else $as_nop
  16233. enable_assertions=auto
  16234. fi
  16235. case "$enable_assertions" in
  16236. auto) # Use optimization settings to determine assertion level
  16237. ;;
  16238. disabled)
  16239. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  16240. ;;
  16241. release)
  16242. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  16243. ;;
  16244. enabled)
  16245. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  16246. ;;
  16247. paranoid)
  16248. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  16249. ;;
  16250. *)
  16251. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  16252. ;;
  16253. esac
  16254. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BUILD_MAJOR_VERSION=$SDL_MAJOR_VERSION -DSDL_BUILD_MINOR_VERSION=$SDL_MINOR_VERSION -DSDL_BUILD_MICRO_VERSION=$SDL_MICRO_VERSION"
  16255. # Check whether --enable-dependency-tracking was given.
  16256. if test ${enable_dependency_tracking+y}
  16257. then :
  16258. enableval=$enable_dependency_tracking;
  16259. else $as_nop
  16260. enable_dependency_tracking=yes
  16261. fi
  16262. if test x$enable_dependency_tracking = xyes; then
  16263. have_gcc_mmd_mt=no
  16264. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  16265. printf %s "checking for GCC -MMD -MT option... " >&6; }
  16266. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16267. /* end confdefs.h. */
  16268. #if !defined(__GNUC__) || __GNUC__ < 3
  16269. #error Dependency tracking requires GCC 3.0 or newer
  16270. #endif
  16271. int
  16272. main (void)
  16273. {
  16274. ;
  16275. return 0;
  16276. }
  16277. _ACEOF
  16278. if ac_fn_c_try_compile "$LINENO"
  16279. then :
  16280. have_gcc_mmd_mt=yes
  16281. fi
  16282. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16283. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  16284. printf "%s\n" "$have_gcc_mmd_mt" >&6; }
  16285. if test x$have_gcc_mmd_mt = xyes; then
  16286. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  16287. fi
  16288. fi
  16289. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  16290. printf %s "checking for linker option --no-undefined... " >&6; }
  16291. have_no_undefined=no
  16292. case "$host" in
  16293. *-*-openbsd*)
  16294. ;;
  16295. *)
  16296. save_LDFLAGS="$LDFLAGS"
  16297. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  16298. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16299. /* end confdefs.h. */
  16300. int
  16301. main (void)
  16302. {
  16303. ;
  16304. return 0;
  16305. }
  16306. _ACEOF
  16307. if ac_fn_c_try_link "$LINENO"
  16308. then :
  16309. have_no_undefined=yes
  16310. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wl,--no-undefined"
  16311. fi
  16312. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16313. conftest$ac_exeext conftest.$ac_ext
  16314. LDFLAGS="$save_LDFLAGS"
  16315. ;;
  16316. esac
  16317. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  16318. printf "%s\n" "$have_no_undefined" >&6; }
  16319. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  16320. printf %s "checking for linker option --dynamicbase... " >&6; }
  16321. have_dynamicbase=no
  16322. case "$host" in
  16323. *)
  16324. save_LDFLAGS="$LDFLAGS"
  16325. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  16326. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16327. /* end confdefs.h. */
  16328. int
  16329. main (void)
  16330. {
  16331. ;
  16332. return 0;
  16333. }
  16334. _ACEOF
  16335. if ac_fn_c_try_link "$LINENO"
  16336. then :
  16337. have_dynamicbase=yes
  16338. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  16339. fi
  16340. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16341. conftest$ac_exeext conftest.$ac_ext
  16342. LDFLAGS="$save_LDFLAGS"
  16343. ;;
  16344. esac
  16345. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  16346. printf "%s\n" "$have_dynamicbase" >&6; }
  16347. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  16348. printf %s "checking for linker option --nxcompat... " >&6; }
  16349. have_nxcompat=no
  16350. case "$host" in
  16351. *)
  16352. save_LDFLAGS="$LDFLAGS"
  16353. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  16354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16355. /* end confdefs.h. */
  16356. int
  16357. main (void)
  16358. {
  16359. ;
  16360. return 0;
  16361. }
  16362. _ACEOF
  16363. if ac_fn_c_try_link "$LINENO"
  16364. then :
  16365. have_nxcompat=yes
  16366. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  16367. fi
  16368. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16369. conftest$ac_exeext conftest.$ac_ext
  16370. LDFLAGS="$save_LDFLAGS"
  16371. ;;
  16372. esac
  16373. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  16374. printf "%s\n" "$have_nxcompat" >&6; }
  16375. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  16376. printf %s "checking for linker option --high-entropy-va... " >&6; }
  16377. have_high_entropy_va=no
  16378. case "$host" in
  16379. *)
  16380. save_LDFLAGS="$LDFLAGS"
  16381. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  16382. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16383. /* end confdefs.h. */
  16384. int
  16385. main (void)
  16386. {
  16387. ;
  16388. return 0;
  16389. }
  16390. _ACEOF
  16391. if ac_fn_c_try_link "$LINENO"
  16392. then :
  16393. have_high_entropy_va=yes
  16394. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  16395. fi
  16396. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16397. conftest$ac_exeext conftest.$ac_ext
  16398. LDFLAGS="$save_LDFLAGS"
  16399. ;;
  16400. esac
  16401. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  16402. printf "%s\n" "$have_high_entropy_va" >&6; }
  16403. # Check whether --enable-libc was given.
  16404. if test ${enable_libc+y}
  16405. then :
  16406. enableval=$enable_libc;
  16407. else $as_nop
  16408. enable_libc=yes
  16409. fi
  16410. enable_system_iconv_default=yes
  16411. case "$host" in
  16412. *-*-cygwin*|*-*-mingw*)
  16413. enable_system_iconv_default=no
  16414. ;;
  16415. esac
  16416. # Check whether --enable-system-iconv was given.
  16417. if test ${enable_system_iconv+y}
  16418. then :
  16419. enableval=$enable_system_iconv;
  16420. else $as_nop
  16421. enable_system_iconv=$enable_system_iconv_default
  16422. fi
  16423. # Check whether --enable-libiconv was given.
  16424. if test ${enable_libiconv+y}
  16425. then :
  16426. enableval=$enable_libiconv;
  16427. else $as_nop
  16428. enable_libiconv=no
  16429. fi
  16430. if test x$enable_libc = xyes; then
  16431. printf "%s\n" "#define HAVE_LIBC 1" >>confdefs.h
  16432. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
  16433. if test "x$ac_cv_header_sys_types_h" = xyes
  16434. then :
  16435. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  16436. fi
  16437. ac_fn_c_check_header_compile "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
  16438. if test "x$ac_cv_header_stdio_h" = xyes
  16439. then :
  16440. printf "%s\n" "#define HAVE_STDIO_H 1" >>confdefs.h
  16441. fi
  16442. ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  16443. if test "x$ac_cv_header_stdlib_h" = xyes
  16444. then :
  16445. printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
  16446. fi
  16447. ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
  16448. if test "x$ac_cv_header_stddef_h" = xyes
  16449. then :
  16450. printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
  16451. fi
  16452. ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
  16453. if test "x$ac_cv_header_stdarg_h" = xyes
  16454. then :
  16455. printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
  16456. fi
  16457. ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
  16458. if test "x$ac_cv_header_malloc_h" = xyes
  16459. then :
  16460. printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
  16461. fi
  16462. ac_fn_c_check_header_compile "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
  16463. if test "x$ac_cv_header_memory_h" = xyes
  16464. then :
  16465. printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h
  16466. fi
  16467. ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
  16468. if test "x$ac_cv_header_string_h" = xyes
  16469. then :
  16470. printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
  16471. fi
  16472. ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
  16473. if test "x$ac_cv_header_strings_h" = xyes
  16474. then :
  16475. printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
  16476. fi
  16477. ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
  16478. if test "x$ac_cv_header_wchar_h" = xyes
  16479. then :
  16480. printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
  16481. fi
  16482. ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  16483. if test "x$ac_cv_header_inttypes_h" = xyes
  16484. then :
  16485. printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
  16486. fi
  16487. ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  16488. if test "x$ac_cv_header_stdint_h" = xyes
  16489. then :
  16490. printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
  16491. fi
  16492. ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
  16493. if test "x$ac_cv_header_limits_h" = xyes
  16494. then :
  16495. printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
  16496. fi
  16497. ac_fn_c_check_header_compile "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
  16498. if test "x$ac_cv_header_ctype_h" = xyes
  16499. then :
  16500. printf "%s\n" "#define HAVE_CTYPE_H 1" >>confdefs.h
  16501. fi
  16502. ac_fn_c_check_header_compile "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
  16503. if test "x$ac_cv_header_math_h" = xyes
  16504. then :
  16505. printf "%s\n" "#define HAVE_MATH_H 1" >>confdefs.h
  16506. fi
  16507. ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
  16508. if test "x$ac_cv_header_float_h" = xyes
  16509. then :
  16510. printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
  16511. fi
  16512. ac_fn_c_check_header_compile "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
  16513. if test "x$ac_cv_header_iconv_h" = xyes
  16514. then :
  16515. printf "%s\n" "#define HAVE_ICONV_H 1" >>confdefs.h
  16516. fi
  16517. ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
  16518. if test "x$ac_cv_header_signal_h" = xyes
  16519. then :
  16520. printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
  16521. fi
  16522. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  16523. if test "x$ac_cv_type_size_t" = xyes
  16524. then :
  16525. else $as_nop
  16526. printf "%s\n" "#define size_t unsigned int" >>confdefs.h
  16527. fi
  16528. ac_ext=c
  16529. ac_cpp='$CPP $CPPFLAGS'
  16530. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16531. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16532. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16533. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  16534. printf %s "checking how to run the C preprocessor... " >&6; }
  16535. # On Suns, sometimes $CPP names a directory.
  16536. if test -n "$CPP" && test -d "$CPP"; then
  16537. CPP=
  16538. fi
  16539. if test -z "$CPP"; then
  16540. if test ${ac_cv_prog_CPP+y}
  16541. then :
  16542. printf %s "(cached) " >&6
  16543. else $as_nop
  16544. # Double quotes because $CC needs to be expanded
  16545. for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
  16546. do
  16547. ac_preproc_ok=false
  16548. for ac_c_preproc_warn_flag in '' yes
  16549. do
  16550. # Use a header file that comes with gcc, so configuring glibc
  16551. # with a fresh cross-compiler works.
  16552. # On the NeXT, cc -E runs the code through the compiler's parser,
  16553. # not just through cpp. "Syntax error" is here to catch this case.
  16554. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16555. /* end confdefs.h. */
  16556. #include <limits.h>
  16557. Syntax error
  16558. _ACEOF
  16559. if ac_fn_c_try_cpp "$LINENO"
  16560. then :
  16561. else $as_nop
  16562. # Broken: fails on valid input.
  16563. continue
  16564. fi
  16565. rm -f conftest.err conftest.i conftest.$ac_ext
  16566. # OK, works on sane cases. Now check whether nonexistent headers
  16567. # can be detected and how.
  16568. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16569. /* end confdefs.h. */
  16570. #include <ac_nonexistent.h>
  16571. _ACEOF
  16572. if ac_fn_c_try_cpp "$LINENO"
  16573. then :
  16574. # Broken: success on invalid input.
  16575. continue
  16576. else $as_nop
  16577. # Passes both tests.
  16578. ac_preproc_ok=:
  16579. break
  16580. fi
  16581. rm -f conftest.err conftest.i conftest.$ac_ext
  16582. done
  16583. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16584. rm -f conftest.i conftest.err conftest.$ac_ext
  16585. if $ac_preproc_ok
  16586. then :
  16587. break
  16588. fi
  16589. done
  16590. ac_cv_prog_CPP=$CPP
  16591. fi
  16592. CPP=$ac_cv_prog_CPP
  16593. else
  16594. ac_cv_prog_CPP=$CPP
  16595. fi
  16596. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  16597. printf "%s\n" "$CPP" >&6; }
  16598. ac_preproc_ok=false
  16599. for ac_c_preproc_warn_flag in '' yes
  16600. do
  16601. # Use a header file that comes with gcc, so configuring glibc
  16602. # with a fresh cross-compiler works.
  16603. # On the NeXT, cc -E runs the code through the compiler's parser,
  16604. # not just through cpp. "Syntax error" is here to catch this case.
  16605. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16606. /* end confdefs.h. */
  16607. #include <limits.h>
  16608. Syntax error
  16609. _ACEOF
  16610. if ac_fn_c_try_cpp "$LINENO"
  16611. then :
  16612. else $as_nop
  16613. # Broken: fails on valid input.
  16614. continue
  16615. fi
  16616. rm -f conftest.err conftest.i conftest.$ac_ext
  16617. # OK, works on sane cases. Now check whether nonexistent headers
  16618. # can be detected and how.
  16619. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16620. /* end confdefs.h. */
  16621. #include <ac_nonexistent.h>
  16622. _ACEOF
  16623. if ac_fn_c_try_cpp "$LINENO"
  16624. then :
  16625. # Broken: success on invalid input.
  16626. continue
  16627. else $as_nop
  16628. # Passes both tests.
  16629. ac_preproc_ok=:
  16630. break
  16631. fi
  16632. rm -f conftest.err conftest.i conftest.$ac_ext
  16633. done
  16634. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16635. rm -f conftest.i conftest.err conftest.$ac_ext
  16636. if $ac_preproc_ok
  16637. then :
  16638. else $as_nop
  16639. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16640. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  16641. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  16642. See \`config.log' for more details" "$LINENO" 5; }
  16643. fi
  16644. ac_ext=c
  16645. ac_cpp='$CPP $CPPFLAGS'
  16646. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16647. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16648. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16649. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  16650. printf %s "checking for M_PI in math.h... " >&6; }
  16651. if test ${ac_cv_define_M_PI+y}
  16652. then :
  16653. printf %s "(cached) " >&6
  16654. else $as_nop
  16655. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16656. /* end confdefs.h. */
  16657. #include <math.h>
  16658. #ifdef M_PI
  16659. YES_IS_DEFINED
  16660. #endif
  16661. _ACEOF
  16662. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16663. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1
  16664. then :
  16665. ac_cv_define_M_PI=yes
  16666. else $as_nop
  16667. ac_cv_define_M_PI=no
  16668. fi
  16669. rm -rf conftest*
  16670. fi
  16671. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  16672. printf "%s\n" "$ac_cv_define_M_PI" >&6; }
  16673. if test "$ac_cv_define_M_PI" = "yes" ; then
  16674. printf "%s\n" "#define HAVE_M_PI /**/" >>confdefs.h
  16675. fi
  16676. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  16677. # for constant arguments. Useless!
  16678. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  16679. printf %s "checking for working alloca.h... " >&6; }
  16680. if test ${ac_cv_working_alloca_h+y}
  16681. then :
  16682. printf %s "(cached) " >&6
  16683. else $as_nop
  16684. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16685. /* end confdefs.h. */
  16686. #include <alloca.h>
  16687. int
  16688. main (void)
  16689. {
  16690. char *p = (char *) alloca (2 * sizeof (int));
  16691. if (p) return 0;
  16692. ;
  16693. return 0;
  16694. }
  16695. _ACEOF
  16696. if ac_fn_c_try_link "$LINENO"
  16697. then :
  16698. ac_cv_working_alloca_h=yes
  16699. else $as_nop
  16700. ac_cv_working_alloca_h=no
  16701. fi
  16702. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16703. conftest$ac_exeext conftest.$ac_ext
  16704. fi
  16705. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  16706. printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
  16707. if test $ac_cv_working_alloca_h = yes; then
  16708. printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
  16709. fi
  16710. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  16711. printf %s "checking for alloca... " >&6; }
  16712. if test ${ac_cv_func_alloca_works+y}
  16713. then :
  16714. printf %s "(cached) " >&6
  16715. else $as_nop
  16716. if test $ac_cv_working_alloca_h = yes; then
  16717. ac_cv_func_alloca_works=yes
  16718. else
  16719. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16720. /* end confdefs.h. */
  16721. #include <stdlib.h>
  16722. #include <stddef.h>
  16723. #ifndef alloca
  16724. # ifdef __GNUC__
  16725. # define alloca __builtin_alloca
  16726. # elif defined _MSC_VER
  16727. # include <malloc.h>
  16728. # define alloca _alloca
  16729. # else
  16730. # ifdef __cplusplus
  16731. extern "C"
  16732. # endif
  16733. void *alloca (size_t);
  16734. # endif
  16735. #endif
  16736. int
  16737. main (void)
  16738. {
  16739. char *p = (char *) alloca (1);
  16740. if (p) return 0;
  16741. ;
  16742. return 0;
  16743. }
  16744. _ACEOF
  16745. if ac_fn_c_try_link "$LINENO"
  16746. then :
  16747. ac_cv_func_alloca_works=yes
  16748. else $as_nop
  16749. ac_cv_func_alloca_works=no
  16750. fi
  16751. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16752. conftest$ac_exeext conftest.$ac_ext
  16753. fi
  16754. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  16755. printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
  16756. fi
  16757. if test $ac_cv_func_alloca_works = yes; then
  16758. printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
  16759. else
  16760. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  16761. # that cause trouble. Some versions do not even contain alloca or
  16762. # contain a buggy version. If you still want to use their alloca,
  16763. # use ar to extract alloca.o from them instead of compiling alloca.c.
  16764. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  16765. printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
  16766. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  16767. printf %s "checking stack direction for C alloca... " >&6; }
  16768. if test ${ac_cv_c_stack_direction+y}
  16769. then :
  16770. printf %s "(cached) " >&6
  16771. else $as_nop
  16772. if test "$cross_compiling" = yes
  16773. then :
  16774. ac_cv_c_stack_direction=0
  16775. else $as_nop
  16776. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16777. /* end confdefs.h. */
  16778. $ac_includes_default
  16779. int
  16780. find_stack_direction (int *addr, int depth)
  16781. {
  16782. int dir, dummy = 0;
  16783. if (! addr)
  16784. addr = &dummy;
  16785. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  16786. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  16787. return dir + dummy;
  16788. }
  16789. int
  16790. main (int argc, char **argv)
  16791. {
  16792. return find_stack_direction (0, argc + !argv + 20) < 0;
  16793. }
  16794. _ACEOF
  16795. if ac_fn_c_try_run "$LINENO"
  16796. then :
  16797. ac_cv_c_stack_direction=1
  16798. else $as_nop
  16799. ac_cv_c_stack_direction=-1
  16800. fi
  16801. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16802. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16803. fi
  16804. fi
  16805. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  16806. printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
  16807. printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
  16808. fi
  16809. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  16810. if test "x$ac_cv_func_mprotect" = xyes
  16811. then :
  16812. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16813. /* end confdefs.h. */
  16814. #include <sys/types.h>
  16815. #include <sys/mman.h>
  16816. int
  16817. main (void)
  16818. {
  16819. ;
  16820. return 0;
  16821. }
  16822. _ACEOF
  16823. if ac_fn_c_try_compile "$LINENO"
  16824. then :
  16825. printf "%s\n" "#define HAVE_MPROTECT 1" >>confdefs.h
  16826. fi
  16827. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16828. fi
  16829. ac_fn_c_check_func "$LINENO" "malloc" "ac_cv_func_malloc"
  16830. if test "x$ac_cv_func_malloc" = xyes
  16831. then :
  16832. printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h
  16833. fi
  16834. ac_fn_c_check_func "$LINENO" "calloc" "ac_cv_func_calloc"
  16835. if test "x$ac_cv_func_calloc" = xyes
  16836. then :
  16837. printf "%s\n" "#define HAVE_CALLOC 1" >>confdefs.h
  16838. fi
  16839. ac_fn_c_check_func "$LINENO" "realloc" "ac_cv_func_realloc"
  16840. if test "x$ac_cv_func_realloc" = xyes
  16841. then :
  16842. printf "%s\n" "#define HAVE_REALLOC 1" >>confdefs.h
  16843. fi
  16844. ac_fn_c_check_func "$LINENO" "free" "ac_cv_func_free"
  16845. if test "x$ac_cv_func_free" = xyes
  16846. then :
  16847. printf "%s\n" "#define HAVE_FREE 1" >>confdefs.h
  16848. fi
  16849. ac_fn_c_check_func "$LINENO" "getenv" "ac_cv_func_getenv"
  16850. if test "x$ac_cv_func_getenv" = xyes
  16851. then :
  16852. printf "%s\n" "#define HAVE_GETENV 1" >>confdefs.h
  16853. fi
  16854. ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
  16855. if test "x$ac_cv_func_setenv" = xyes
  16856. then :
  16857. printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
  16858. fi
  16859. ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
  16860. if test "x$ac_cv_func_putenv" = xyes
  16861. then :
  16862. printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
  16863. fi
  16864. ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
  16865. if test "x$ac_cv_func_unsetenv" = xyes
  16866. then :
  16867. printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
  16868. fi
  16869. ac_fn_c_check_func "$LINENO" "bsearch" "ac_cv_func_bsearch"
  16870. if test "x$ac_cv_func_bsearch" = xyes
  16871. then :
  16872. printf "%s\n" "#define HAVE_BSEARCH 1" >>confdefs.h
  16873. fi
  16874. ac_fn_c_check_func "$LINENO" "qsort" "ac_cv_func_qsort"
  16875. if test "x$ac_cv_func_qsort" = xyes
  16876. then :
  16877. printf "%s\n" "#define HAVE_QSORT 1" >>confdefs.h
  16878. fi
  16879. ac_fn_c_check_func "$LINENO" "abs" "ac_cv_func_abs"
  16880. if test "x$ac_cv_func_abs" = xyes
  16881. then :
  16882. printf "%s\n" "#define HAVE_ABS 1" >>confdefs.h
  16883. fi
  16884. ac_fn_c_check_func "$LINENO" "bcopy" "ac_cv_func_bcopy"
  16885. if test "x$ac_cv_func_bcopy" = xyes
  16886. then :
  16887. printf "%s\n" "#define HAVE_BCOPY 1" >>confdefs.h
  16888. fi
  16889. ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
  16890. if test "x$ac_cv_func_memset" = xyes
  16891. then :
  16892. printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
  16893. fi
  16894. ac_fn_c_check_func "$LINENO" "memcmp" "ac_cv_func_memcmp"
  16895. if test "x$ac_cv_func_memcmp" = xyes
  16896. then :
  16897. printf "%s\n" "#define HAVE_MEMCMP 1" >>confdefs.h
  16898. fi
  16899. ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
  16900. if test "x$ac_cv_func_memcpy" = xyes
  16901. then :
  16902. printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h
  16903. fi
  16904. ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
  16905. if test "x$ac_cv_func_memmove" = xyes
  16906. then :
  16907. printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
  16908. fi
  16909. ac_fn_c_check_func "$LINENO" "wcslen" "ac_cv_func_wcslen"
  16910. if test "x$ac_cv_func_wcslen" = xyes
  16911. then :
  16912. printf "%s\n" "#define HAVE_WCSLEN 1" >>confdefs.h
  16913. fi
  16914. ac_fn_c_check_func "$LINENO" "wcslcpy" "ac_cv_func_wcslcpy"
  16915. if test "x$ac_cv_func_wcslcpy" = xyes
  16916. then :
  16917. printf "%s\n" "#define HAVE_WCSLCPY 1" >>confdefs.h
  16918. fi
  16919. ac_fn_c_check_func "$LINENO" "wcslcat" "ac_cv_func_wcslcat"
  16920. if test "x$ac_cv_func_wcslcat" = xyes
  16921. then :
  16922. printf "%s\n" "#define HAVE_WCSLCAT 1" >>confdefs.h
  16923. fi
  16924. ac_fn_c_check_func "$LINENO" "_wcsdup" "ac_cv_func__wcsdup"
  16925. if test "x$ac_cv_func__wcsdup" = xyes
  16926. then :
  16927. printf "%s\n" "#define HAVE__WCSDUP 1" >>confdefs.h
  16928. fi
  16929. ac_fn_c_check_func "$LINENO" "wcsdup" "ac_cv_func_wcsdup"
  16930. if test "x$ac_cv_func_wcsdup" = xyes
  16931. then :
  16932. printf "%s\n" "#define HAVE_WCSDUP 1" >>confdefs.h
  16933. fi
  16934. ac_fn_c_check_func "$LINENO" "wcsstr" "ac_cv_func_wcsstr"
  16935. if test "x$ac_cv_func_wcsstr" = xyes
  16936. then :
  16937. printf "%s\n" "#define HAVE_WCSSTR 1" >>confdefs.h
  16938. fi
  16939. ac_fn_c_check_func "$LINENO" "wcscmp" "ac_cv_func_wcscmp"
  16940. if test "x$ac_cv_func_wcscmp" = xyes
  16941. then :
  16942. printf "%s\n" "#define HAVE_WCSCMP 1" >>confdefs.h
  16943. fi
  16944. ac_fn_c_check_func "$LINENO" "wcsncmp" "ac_cv_func_wcsncmp"
  16945. if test "x$ac_cv_func_wcsncmp" = xyes
  16946. then :
  16947. printf "%s\n" "#define HAVE_WCSNCMP 1" >>confdefs.h
  16948. fi
  16949. ac_fn_c_check_func "$LINENO" "wcscasecmp" "ac_cv_func_wcscasecmp"
  16950. if test "x$ac_cv_func_wcscasecmp" = xyes
  16951. then :
  16952. printf "%s\n" "#define HAVE_WCSCASECMP 1" >>confdefs.h
  16953. fi
  16954. ac_fn_c_check_func "$LINENO" "_wcsicmp" "ac_cv_func__wcsicmp"
  16955. if test "x$ac_cv_func__wcsicmp" = xyes
  16956. then :
  16957. printf "%s\n" "#define HAVE__WCSICMP 1" >>confdefs.h
  16958. fi
  16959. ac_fn_c_check_func "$LINENO" "wcsncasecmp" "ac_cv_func_wcsncasecmp"
  16960. if test "x$ac_cv_func_wcsncasecmp" = xyes
  16961. then :
  16962. printf "%s\n" "#define HAVE_WCSNCASECMP 1" >>confdefs.h
  16963. fi
  16964. ac_fn_c_check_func "$LINENO" "_wcsnicmp" "ac_cv_func__wcsnicmp"
  16965. if test "x$ac_cv_func__wcsnicmp" = xyes
  16966. then :
  16967. printf "%s\n" "#define HAVE__WCSNICMP 1" >>confdefs.h
  16968. fi
  16969. ac_fn_c_check_func "$LINENO" "strlen" "ac_cv_func_strlen"
  16970. if test "x$ac_cv_func_strlen" = xyes
  16971. then :
  16972. printf "%s\n" "#define HAVE_STRLEN 1" >>confdefs.h
  16973. fi
  16974. ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
  16975. if test "x$ac_cv_func_strlcpy" = xyes
  16976. then :
  16977. printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
  16978. fi
  16979. ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
  16980. if test "x$ac_cv_func_strlcat" = xyes
  16981. then :
  16982. printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
  16983. fi
  16984. ac_fn_c_check_func "$LINENO" "_strrev" "ac_cv_func__strrev"
  16985. if test "x$ac_cv_func__strrev" = xyes
  16986. then :
  16987. printf "%s\n" "#define HAVE__STRREV 1" >>confdefs.h
  16988. fi
  16989. ac_fn_c_check_func "$LINENO" "_strupr" "ac_cv_func__strupr"
  16990. if test "x$ac_cv_func__strupr" = xyes
  16991. then :
  16992. printf "%s\n" "#define HAVE__STRUPR 1" >>confdefs.h
  16993. fi
  16994. ac_fn_c_check_func "$LINENO" "_strlwr" "ac_cv_func__strlwr"
  16995. if test "x$ac_cv_func__strlwr" = xyes
  16996. then :
  16997. printf "%s\n" "#define HAVE__STRLWR 1" >>confdefs.h
  16998. fi
  16999. ac_fn_c_check_func "$LINENO" "index" "ac_cv_func_index"
  17000. if test "x$ac_cv_func_index" = xyes
  17001. then :
  17002. printf "%s\n" "#define HAVE_INDEX 1" >>confdefs.h
  17003. fi
  17004. ac_fn_c_check_func "$LINENO" "rindex" "ac_cv_func_rindex"
  17005. if test "x$ac_cv_func_rindex" = xyes
  17006. then :
  17007. printf "%s\n" "#define HAVE_RINDEX 1" >>confdefs.h
  17008. fi
  17009. ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
  17010. if test "x$ac_cv_func_strchr" = xyes
  17011. then :
  17012. printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
  17013. fi
  17014. ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
  17015. if test "x$ac_cv_func_strrchr" = xyes
  17016. then :
  17017. printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
  17018. fi
  17019. ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
  17020. if test "x$ac_cv_func_strstr" = xyes
  17021. then :
  17022. printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h
  17023. fi
  17024. ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
  17025. if test "x$ac_cv_func_strtok_r" = xyes
  17026. then :
  17027. printf "%s\n" "#define HAVE_STRTOK_R 1" >>confdefs.h
  17028. fi
  17029. ac_fn_c_check_func "$LINENO" "itoa" "ac_cv_func_itoa"
  17030. if test "x$ac_cv_func_itoa" = xyes
  17031. then :
  17032. printf "%s\n" "#define HAVE_ITOA 1" >>confdefs.h
  17033. fi
  17034. ac_fn_c_check_func "$LINENO" "_ltoa" "ac_cv_func__ltoa"
  17035. if test "x$ac_cv_func__ltoa" = xyes
  17036. then :
  17037. printf "%s\n" "#define HAVE__LTOA 1" >>confdefs.h
  17038. fi
  17039. ac_fn_c_check_func "$LINENO" "_uitoa" "ac_cv_func__uitoa"
  17040. if test "x$ac_cv_func__uitoa" = xyes
  17041. then :
  17042. printf "%s\n" "#define HAVE__UITOA 1" >>confdefs.h
  17043. fi
  17044. ac_fn_c_check_func "$LINENO" "_ultoa" "ac_cv_func__ultoa"
  17045. if test "x$ac_cv_func__ultoa" = xyes
  17046. then :
  17047. printf "%s\n" "#define HAVE__ULTOA 1" >>confdefs.h
  17048. fi
  17049. ac_fn_c_check_func "$LINENO" "strtod" "ac_cv_func_strtod"
  17050. if test "x$ac_cv_func_strtod" = xyes
  17051. then :
  17052. printf "%s\n" "#define HAVE_STRTOD 1" >>confdefs.h
  17053. fi
  17054. ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
  17055. if test "x$ac_cv_func_strtol" = xyes
  17056. then :
  17057. printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
  17058. fi
  17059. ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
  17060. if test "x$ac_cv_func_strtoul" = xyes
  17061. then :
  17062. printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h
  17063. fi
  17064. ac_fn_c_check_func "$LINENO" "_i64toa" "ac_cv_func__i64toa"
  17065. if test "x$ac_cv_func__i64toa" = xyes
  17066. then :
  17067. printf "%s\n" "#define HAVE__I64TOA 1" >>confdefs.h
  17068. fi
  17069. ac_fn_c_check_func "$LINENO" "_ui64toa" "ac_cv_func__ui64toa"
  17070. if test "x$ac_cv_func__ui64toa" = xyes
  17071. then :
  17072. printf "%s\n" "#define HAVE__UI64TOA 1" >>confdefs.h
  17073. fi
  17074. ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
  17075. if test "x$ac_cv_func_strtoll" = xyes
  17076. then :
  17077. printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
  17078. fi
  17079. ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
  17080. if test "x$ac_cv_func_strtoull" = xyes
  17081. then :
  17082. printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h
  17083. fi
  17084. ac_fn_c_check_func "$LINENO" "atoi" "ac_cv_func_atoi"
  17085. if test "x$ac_cv_func_atoi" = xyes
  17086. then :
  17087. printf "%s\n" "#define HAVE_ATOI 1" >>confdefs.h
  17088. fi
  17089. ac_fn_c_check_func "$LINENO" "atof" "ac_cv_func_atof"
  17090. if test "x$ac_cv_func_atof" = xyes
  17091. then :
  17092. printf "%s\n" "#define HAVE_ATOF 1" >>confdefs.h
  17093. fi
  17094. ac_fn_c_check_func "$LINENO" "strcmp" "ac_cv_func_strcmp"
  17095. if test "x$ac_cv_func_strcmp" = xyes
  17096. then :
  17097. printf "%s\n" "#define HAVE_STRCMP 1" >>confdefs.h
  17098. fi
  17099. ac_fn_c_check_func "$LINENO" "strncmp" "ac_cv_func_strncmp"
  17100. if test "x$ac_cv_func_strncmp" = xyes
  17101. then :
  17102. printf "%s\n" "#define HAVE_STRNCMP 1" >>confdefs.h
  17103. fi
  17104. ac_fn_c_check_func "$LINENO" "_stricmp" "ac_cv_func__stricmp"
  17105. if test "x$ac_cv_func__stricmp" = xyes
  17106. then :
  17107. printf "%s\n" "#define HAVE__STRICMP 1" >>confdefs.h
  17108. fi
  17109. ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
  17110. if test "x$ac_cv_func_strcasecmp" = xyes
  17111. then :
  17112. printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
  17113. fi
  17114. ac_fn_c_check_func "$LINENO" "_strnicmp" "ac_cv_func__strnicmp"
  17115. if test "x$ac_cv_func__strnicmp" = xyes
  17116. then :
  17117. printf "%s\n" "#define HAVE__STRNICMP 1" >>confdefs.h
  17118. fi
  17119. ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
  17120. if test "x$ac_cv_func_strncasecmp" = xyes
  17121. then :
  17122. printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
  17123. fi
  17124. ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
  17125. if test "x$ac_cv_func_strcasestr" = xyes
  17126. then :
  17127. printf "%s\n" "#define HAVE_STRCASESTR 1" >>confdefs.h
  17128. fi
  17129. ac_fn_c_check_func "$LINENO" "vsscanf" "ac_cv_func_vsscanf"
  17130. if test "x$ac_cv_func_vsscanf" = xyes
  17131. then :
  17132. printf "%s\n" "#define HAVE_VSSCANF 1" >>confdefs.h
  17133. fi
  17134. ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
  17135. if test "x$ac_cv_func_vsnprintf" = xyes
  17136. then :
  17137. printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
  17138. fi
  17139. ac_fn_c_check_func "$LINENO" "fopen64" "ac_cv_func_fopen64"
  17140. if test "x$ac_cv_func_fopen64" = xyes
  17141. then :
  17142. printf "%s\n" "#define HAVE_FOPEN64 1" >>confdefs.h
  17143. fi
  17144. ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
  17145. if test "x$ac_cv_func_fseeko" = xyes
  17146. then :
  17147. printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
  17148. fi
  17149. ac_fn_c_check_func "$LINENO" "fseeko64" "ac_cv_func_fseeko64"
  17150. if test "x$ac_cv_func_fseeko64" = xyes
  17151. then :
  17152. printf "%s\n" "#define HAVE_FSEEKO64 1" >>confdefs.h
  17153. fi
  17154. ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
  17155. if test "x$ac_cv_func_sigaction" = xyes
  17156. then :
  17157. printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
  17158. fi
  17159. ac_fn_c_check_func "$LINENO" "setjmp" "ac_cv_func_setjmp"
  17160. if test "x$ac_cv_func_setjmp" = xyes
  17161. then :
  17162. printf "%s\n" "#define HAVE_SETJMP 1" >>confdefs.h
  17163. fi
  17164. ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
  17165. if test "x$ac_cv_func_nanosleep" = xyes
  17166. then :
  17167. printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
  17168. fi
  17169. ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
  17170. if test "x$ac_cv_func_sysconf" = xyes
  17171. then :
  17172. printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
  17173. fi
  17174. ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname"
  17175. if test "x$ac_cv_func_sysctlbyname" = xyes
  17176. then :
  17177. printf "%s\n" "#define HAVE_SYSCTLBYNAME 1" >>confdefs.h
  17178. fi
  17179. ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
  17180. if test "x$ac_cv_func_getauxval" = xyes
  17181. then :
  17182. printf "%s\n" "#define HAVE_GETAUXVAL 1" >>confdefs.h
  17183. fi
  17184. ac_fn_c_check_func "$LINENO" "elf_aux_info" "ac_cv_func_elf_aux_info"
  17185. if test "x$ac_cv_func_elf_aux_info" = xyes
  17186. then :
  17187. printf "%s\n" "#define HAVE_ELF_AUX_INFO 1" >>confdefs.h
  17188. fi
  17189. ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
  17190. if test "x$ac_cv_func_poll" = xyes
  17191. then :
  17192. printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
  17193. fi
  17194. ac_fn_c_check_func "$LINENO" "_Exit" "ac_cv_func__Exit"
  17195. if test "x$ac_cv_func__Exit" = xyes
  17196. then :
  17197. printf "%s\n" "#define HAVE__EXIT 1" >>confdefs.h
  17198. fi
  17199. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  17200. printf %s "checking for pow in -lm... " >&6; }
  17201. if test ${ac_cv_lib_m_pow+y}
  17202. then :
  17203. printf %s "(cached) " >&6
  17204. else $as_nop
  17205. ac_check_lib_save_LIBS=$LIBS
  17206. LIBS="-lm $LIBS"
  17207. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17208. /* end confdefs.h. */
  17209. /* Override any GCC internal prototype to avoid an error.
  17210. Use char because int might match the return type of a GCC
  17211. builtin and then its argument prototype would still apply. */
  17212. char pow ();
  17213. int
  17214. main (void)
  17215. {
  17216. return pow ();
  17217. ;
  17218. return 0;
  17219. }
  17220. _ACEOF
  17221. if ac_fn_c_try_link "$LINENO"
  17222. then :
  17223. ac_cv_lib_m_pow=yes
  17224. else $as_nop
  17225. ac_cv_lib_m_pow=no
  17226. fi
  17227. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17228. conftest$ac_exeext conftest.$ac_ext
  17229. LIBS=$ac_check_lib_save_LIBS
  17230. fi
  17231. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  17232. printf "%s\n" "$ac_cv_lib_m_pow" >&6; }
  17233. if test "x$ac_cv_lib_m_pow" = xyes
  17234. then :
  17235. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  17236. fi
  17237. ac_fn_c_check_func "$LINENO" "acos" "ac_cv_func_acos"
  17238. if test "x$ac_cv_func_acos" = xyes
  17239. then :
  17240. printf "%s\n" "#define HAVE_ACOS 1" >>confdefs.h
  17241. fi
  17242. ac_fn_c_check_func "$LINENO" "acosf" "ac_cv_func_acosf"
  17243. if test "x$ac_cv_func_acosf" = xyes
  17244. then :
  17245. printf "%s\n" "#define HAVE_ACOSF 1" >>confdefs.h
  17246. fi
  17247. ac_fn_c_check_func "$LINENO" "asin" "ac_cv_func_asin"
  17248. if test "x$ac_cv_func_asin" = xyes
  17249. then :
  17250. printf "%s\n" "#define HAVE_ASIN 1" >>confdefs.h
  17251. fi
  17252. ac_fn_c_check_func "$LINENO" "asinf" "ac_cv_func_asinf"
  17253. if test "x$ac_cv_func_asinf" = xyes
  17254. then :
  17255. printf "%s\n" "#define HAVE_ASINF 1" >>confdefs.h
  17256. fi
  17257. ac_fn_c_check_func "$LINENO" "atan" "ac_cv_func_atan"
  17258. if test "x$ac_cv_func_atan" = xyes
  17259. then :
  17260. printf "%s\n" "#define HAVE_ATAN 1" >>confdefs.h
  17261. fi
  17262. ac_fn_c_check_func "$LINENO" "atanf" "ac_cv_func_atanf"
  17263. if test "x$ac_cv_func_atanf" = xyes
  17264. then :
  17265. printf "%s\n" "#define HAVE_ATANF 1" >>confdefs.h
  17266. fi
  17267. ac_fn_c_check_func "$LINENO" "atan2" "ac_cv_func_atan2"
  17268. if test "x$ac_cv_func_atan2" = xyes
  17269. then :
  17270. printf "%s\n" "#define HAVE_ATAN2 1" >>confdefs.h
  17271. fi
  17272. ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f"
  17273. if test "x$ac_cv_func_atan2f" = xyes
  17274. then :
  17275. printf "%s\n" "#define HAVE_ATAN2F 1" >>confdefs.h
  17276. fi
  17277. ac_fn_c_check_func "$LINENO" "ceil" "ac_cv_func_ceil"
  17278. if test "x$ac_cv_func_ceil" = xyes
  17279. then :
  17280. printf "%s\n" "#define HAVE_CEIL 1" >>confdefs.h
  17281. fi
  17282. ac_fn_c_check_func "$LINENO" "ceilf" "ac_cv_func_ceilf"
  17283. if test "x$ac_cv_func_ceilf" = xyes
  17284. then :
  17285. printf "%s\n" "#define HAVE_CEILF 1" >>confdefs.h
  17286. fi
  17287. ac_fn_c_check_func "$LINENO" "copysign" "ac_cv_func_copysign"
  17288. if test "x$ac_cv_func_copysign" = xyes
  17289. then :
  17290. printf "%s\n" "#define HAVE_COPYSIGN 1" >>confdefs.h
  17291. fi
  17292. ac_fn_c_check_func "$LINENO" "copysignf" "ac_cv_func_copysignf"
  17293. if test "x$ac_cv_func_copysignf" = xyes
  17294. then :
  17295. printf "%s\n" "#define HAVE_COPYSIGNF 1" >>confdefs.h
  17296. fi
  17297. ac_fn_c_check_func "$LINENO" "cos" "ac_cv_func_cos"
  17298. if test "x$ac_cv_func_cos" = xyes
  17299. then :
  17300. printf "%s\n" "#define HAVE_COS 1" >>confdefs.h
  17301. fi
  17302. ac_fn_c_check_func "$LINENO" "cosf" "ac_cv_func_cosf"
  17303. if test "x$ac_cv_func_cosf" = xyes
  17304. then :
  17305. printf "%s\n" "#define HAVE_COSF 1" >>confdefs.h
  17306. fi
  17307. ac_fn_c_check_func "$LINENO" "exp" "ac_cv_func_exp"
  17308. if test "x$ac_cv_func_exp" = xyes
  17309. then :
  17310. printf "%s\n" "#define HAVE_EXP 1" >>confdefs.h
  17311. fi
  17312. ac_fn_c_check_func "$LINENO" "expf" "ac_cv_func_expf"
  17313. if test "x$ac_cv_func_expf" = xyes
  17314. then :
  17315. printf "%s\n" "#define HAVE_EXPF 1" >>confdefs.h
  17316. fi
  17317. ac_fn_c_check_func "$LINENO" "fabs" "ac_cv_func_fabs"
  17318. if test "x$ac_cv_func_fabs" = xyes
  17319. then :
  17320. printf "%s\n" "#define HAVE_FABS 1" >>confdefs.h
  17321. fi
  17322. ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf"
  17323. if test "x$ac_cv_func_fabsf" = xyes
  17324. then :
  17325. printf "%s\n" "#define HAVE_FABSF 1" >>confdefs.h
  17326. fi
  17327. ac_fn_c_check_func "$LINENO" "floor" "ac_cv_func_floor"
  17328. if test "x$ac_cv_func_floor" = xyes
  17329. then :
  17330. printf "%s\n" "#define HAVE_FLOOR 1" >>confdefs.h
  17331. fi
  17332. ac_fn_c_check_func "$LINENO" "floorf" "ac_cv_func_floorf"
  17333. if test "x$ac_cv_func_floorf" = xyes
  17334. then :
  17335. printf "%s\n" "#define HAVE_FLOORF 1" >>confdefs.h
  17336. fi
  17337. ac_fn_c_check_func "$LINENO" "trunc" "ac_cv_func_trunc"
  17338. if test "x$ac_cv_func_trunc" = xyes
  17339. then :
  17340. printf "%s\n" "#define HAVE_TRUNC 1" >>confdefs.h
  17341. fi
  17342. ac_fn_c_check_func "$LINENO" "truncf" "ac_cv_func_truncf"
  17343. if test "x$ac_cv_func_truncf" = xyes
  17344. then :
  17345. printf "%s\n" "#define HAVE_TRUNCF 1" >>confdefs.h
  17346. fi
  17347. ac_fn_c_check_func "$LINENO" "fmod" "ac_cv_func_fmod"
  17348. if test "x$ac_cv_func_fmod" = xyes
  17349. then :
  17350. printf "%s\n" "#define HAVE_FMOD 1" >>confdefs.h
  17351. fi
  17352. ac_fn_c_check_func "$LINENO" "fmodf" "ac_cv_func_fmodf"
  17353. if test "x$ac_cv_func_fmodf" = xyes
  17354. then :
  17355. printf "%s\n" "#define HAVE_FMODF 1" >>confdefs.h
  17356. fi
  17357. ac_fn_c_check_func "$LINENO" "log" "ac_cv_func_log"
  17358. if test "x$ac_cv_func_log" = xyes
  17359. then :
  17360. printf "%s\n" "#define HAVE_LOG 1" >>confdefs.h
  17361. fi
  17362. ac_fn_c_check_func "$LINENO" "logf" "ac_cv_func_logf"
  17363. if test "x$ac_cv_func_logf" = xyes
  17364. then :
  17365. printf "%s\n" "#define HAVE_LOGF 1" >>confdefs.h
  17366. fi
  17367. ac_fn_c_check_func "$LINENO" "log10" "ac_cv_func_log10"
  17368. if test "x$ac_cv_func_log10" = xyes
  17369. then :
  17370. printf "%s\n" "#define HAVE_LOG10 1" >>confdefs.h
  17371. fi
  17372. ac_fn_c_check_func "$LINENO" "log10f" "ac_cv_func_log10f"
  17373. if test "x$ac_cv_func_log10f" = xyes
  17374. then :
  17375. printf "%s\n" "#define HAVE_LOG10F 1" >>confdefs.h
  17376. fi
  17377. ac_fn_c_check_func "$LINENO" "lround" "ac_cv_func_lround"
  17378. if test "x$ac_cv_func_lround" = xyes
  17379. then :
  17380. printf "%s\n" "#define HAVE_LROUND 1" >>confdefs.h
  17381. fi
  17382. ac_fn_c_check_func "$LINENO" "lroundf" "ac_cv_func_lroundf"
  17383. if test "x$ac_cv_func_lroundf" = xyes
  17384. then :
  17385. printf "%s\n" "#define HAVE_LROUNDF 1" >>confdefs.h
  17386. fi
  17387. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  17388. if test "x$ac_cv_func_pow" = xyes
  17389. then :
  17390. printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
  17391. fi
  17392. ac_fn_c_check_func "$LINENO" "powf" "ac_cv_func_powf"
  17393. if test "x$ac_cv_func_powf" = xyes
  17394. then :
  17395. printf "%s\n" "#define HAVE_POWF 1" >>confdefs.h
  17396. fi
  17397. ac_fn_c_check_func "$LINENO" "round" "ac_cv_func_round"
  17398. if test "x$ac_cv_func_round" = xyes
  17399. then :
  17400. printf "%s\n" "#define HAVE_ROUND 1" >>confdefs.h
  17401. fi
  17402. ac_fn_c_check_func "$LINENO" "roundf" "ac_cv_func_roundf"
  17403. if test "x$ac_cv_func_roundf" = xyes
  17404. then :
  17405. printf "%s\n" "#define HAVE_ROUNDF 1" >>confdefs.h
  17406. fi
  17407. ac_fn_c_check_func "$LINENO" "scalbn" "ac_cv_func_scalbn"
  17408. if test "x$ac_cv_func_scalbn" = xyes
  17409. then :
  17410. printf "%s\n" "#define HAVE_SCALBN 1" >>confdefs.h
  17411. fi
  17412. ac_fn_c_check_func "$LINENO" "scalbnf" "ac_cv_func_scalbnf"
  17413. if test "x$ac_cv_func_scalbnf" = xyes
  17414. then :
  17415. printf "%s\n" "#define HAVE_SCALBNF 1" >>confdefs.h
  17416. fi
  17417. ac_fn_c_check_func "$LINENO" "sin" "ac_cv_func_sin"
  17418. if test "x$ac_cv_func_sin" = xyes
  17419. then :
  17420. printf "%s\n" "#define HAVE_SIN 1" >>confdefs.h
  17421. fi
  17422. ac_fn_c_check_func "$LINENO" "sinf" "ac_cv_func_sinf"
  17423. if test "x$ac_cv_func_sinf" = xyes
  17424. then :
  17425. printf "%s\n" "#define HAVE_SINF 1" >>confdefs.h
  17426. fi
  17427. ac_fn_c_check_func "$LINENO" "sqrt" "ac_cv_func_sqrt"
  17428. if test "x$ac_cv_func_sqrt" = xyes
  17429. then :
  17430. printf "%s\n" "#define HAVE_SQRT 1" >>confdefs.h
  17431. fi
  17432. ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf"
  17433. if test "x$ac_cv_func_sqrtf" = xyes
  17434. then :
  17435. printf "%s\n" "#define HAVE_SQRTF 1" >>confdefs.h
  17436. fi
  17437. ac_fn_c_check_func "$LINENO" "tan" "ac_cv_func_tan"
  17438. if test "x$ac_cv_func_tan" = xyes
  17439. then :
  17440. printf "%s\n" "#define HAVE_TAN 1" >>confdefs.h
  17441. fi
  17442. ac_fn_c_check_func "$LINENO" "tanf" "ac_cv_func_tanf"
  17443. if test "x$ac_cv_func_tanf" = xyes
  17444. then :
  17445. printf "%s\n" "#define HAVE_TANF 1" >>confdefs.h
  17446. fi
  17447. if test x$enable_system_iconv = xyes; then
  17448. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv in libc" >&5
  17449. printf %s "checking for iconv in libc... " >&6; }
  17450. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17451. /* end confdefs.h. */
  17452. #define LIBICONV_PLUG 1 /* in case libiconv header is in include path */
  17453. #include <stddef.h>
  17454. #include <iconv.h>
  17455. int
  17456. main (void)
  17457. {
  17458. iconv_open(NULL,NULL);
  17459. ;
  17460. return 0;
  17461. }
  17462. _ACEOF
  17463. if ac_fn_c_try_link "$LINENO"
  17464. then :
  17465. have_libc_iconv=yes
  17466. else $as_nop
  17467. have_libc_iconv=no
  17468. fi
  17469. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17470. conftest$ac_exeext conftest.$ac_ext
  17471. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_libc_iconv" >&5
  17472. printf "%s\n" "$have_libc_iconv" >&6; }
  17473. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv in libiconv" >&5
  17474. printf %s "checking for iconv in libiconv... " >&6; }
  17475. save_LIBS="$LIBS"
  17476. LIBS="$LIBS -liconv"
  17477. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17478. /* end confdefs.h. */
  17479. #include <stddef.h>
  17480. #include <iconv.h>
  17481. int
  17482. main (void)
  17483. {
  17484. iconv_open(NULL,NULL);
  17485. ;
  17486. return 0;
  17487. }
  17488. _ACEOF
  17489. if ac_fn_c_try_link "$LINENO"
  17490. then :
  17491. have_libiconv=yes
  17492. else $as_nop
  17493. have_libiconv=no
  17494. fi
  17495. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17496. conftest$ac_exeext conftest.$ac_ext
  17497. LIBS="$save_LIBS"
  17498. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_libiconv" >&5
  17499. printf "%s\n" "$have_libiconv" >&6; }
  17500. if test x$have_libc_iconv = xyes || test x$have_libiconv = xyes; then
  17501. printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
  17502. if test x$have_libiconv = xyes; then
  17503. if test x$have_libc_iconv != xyes; then
  17504. use_libiconv=yes
  17505. elif test x$enable_libiconv = xyes; then
  17506. use_libiconv=yes
  17507. fi
  17508. fi
  17509. if test x$use_libiconv = xyes; then
  17510. printf "%s\n" "#define SDL_USE_LIBICONV 1" >>confdefs.h
  17511. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  17512. echo "-- Using iconv from libiconv"
  17513. else
  17514. echo "-- Using iconv from libc"
  17515. fi
  17516. fi
  17517. fi
  17518. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  17519. "
  17520. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes
  17521. then :
  17522. printf "%s\n" "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  17523. fi
  17524. ac_fn_c_check_header_compile "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  17525. if test "x$ac_cv_header_libunwind_h" = xyes
  17526. then :
  17527. printf "%s\n" "#define HAVE_LIBUNWIND_H 1" >>confdefs.h
  17528. fi
  17529. fi
  17530. # Check whether --enable-gcc-atomics was given.
  17531. if test ${enable_gcc_atomics+y}
  17532. then :
  17533. enableval=$enable_gcc_atomics;
  17534. else $as_nop
  17535. enable_gcc_atomics=yes
  17536. fi
  17537. if test x$enable_gcc_atomics = xyes; then
  17538. have_gcc_atomics=no
  17539. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  17540. printf %s "checking for GCC builtin atomic operations... " >&6; }
  17541. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17542. /* end confdefs.h. */
  17543. int
  17544. main (void)
  17545. {
  17546. int a;
  17547. void *x, *y, *z;
  17548. __sync_lock_test_and_set(&a, 4);
  17549. __sync_lock_test_and_set(&x, y);
  17550. __sync_fetch_and_add(&a, 1);
  17551. __sync_bool_compare_and_swap(&a, 5, 10);
  17552. __sync_bool_compare_and_swap(&x, y, z);
  17553. ;
  17554. return 0;
  17555. }
  17556. _ACEOF
  17557. if ac_fn_c_try_link "$LINENO"
  17558. then :
  17559. have_gcc_atomics=yes
  17560. fi
  17561. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17562. conftest$ac_exeext conftest.$ac_ext
  17563. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  17564. printf "%s\n" "$have_gcc_atomics" >&6; }
  17565. if test x$have_gcc_atomics = xyes; then
  17566. printf "%s\n" "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  17567. else
  17568. # See if we have the minimum operation needed for GCC atomics
  17569. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17570. /* end confdefs.h. */
  17571. int
  17572. main (void)
  17573. {
  17574. int a;
  17575. __sync_lock_test_and_set(&a, 1);
  17576. __sync_lock_release(&a);
  17577. ;
  17578. return 0;
  17579. }
  17580. _ACEOF
  17581. if ac_fn_c_try_link "$LINENO"
  17582. then :
  17583. have_gcc_sync_lock_test_and_set=yes
  17584. fi
  17585. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17586. conftest$ac_exeext conftest.$ac_ext
  17587. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  17588. printf "%s\n" "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  17589. fi
  17590. fi
  17591. fi
  17592. # Standard C sources
  17593. SOURCES="$SOURCES $srcdir/src/*.c"
  17594. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  17595. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  17596. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  17597. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  17598. SOURCES="$SOURCES $srcdir/src/events/*.c"
  17599. SOURCES="$SOURCES $srcdir/src/file/*.c"
  17600. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  17601. SOURCES="$SOURCES $srcdir/src/hidapi/*.c"
  17602. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  17603. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  17604. SOURCES="$SOURCES $srcdir/src/misc/*.c"
  17605. SOURCES="$SOURCES $srcdir/src/power/*.c"
  17606. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  17607. SOURCES="$SOURCES $srcdir/src/render/*.c"
  17608. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  17609. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  17610. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  17611. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  17612. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  17613. SOURCES="$SOURCES $srcdir/src/video/*.c"
  17614. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  17615. SOURCES="$SOURCES $srcdir/src/locale/*.c"
  17616. case "$host" in
  17617. *-*-emscripten*)
  17618. default_atomic=no
  17619. ;;
  17620. *)
  17621. default_atomic=yes
  17622. ;;
  17623. esac
  17624. # Check whether --enable-atomic was given.
  17625. if test ${enable_atomic+y}
  17626. then :
  17627. enableval=$enable_atomic;
  17628. else $as_nop
  17629. enable_atomic=$default_atomic
  17630. fi
  17631. if test x$enable_atomic != xyes; then
  17632. printf "%s\n" "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  17633. else
  17634. SUMMARY_modules="${SUMMARY_modules} atomic"
  17635. fi
  17636. # Check whether --enable-audio was given.
  17637. if test ${enable_audio+y}
  17638. then :
  17639. enableval=$enable_audio;
  17640. else $as_nop
  17641. enable_audio=yes
  17642. fi
  17643. if test x$enable_audio != xyes; then
  17644. printf "%s\n" "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  17645. else
  17646. SUMMARY_modules="${SUMMARY_modules} audio"
  17647. fi
  17648. # Check whether --enable-video was given.
  17649. if test ${enable_video+y}
  17650. then :
  17651. enableval=$enable_video;
  17652. else $as_nop
  17653. enable_video=yes
  17654. fi
  17655. if test x$enable_video != xyes; then
  17656. printf "%s\n" "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  17657. else
  17658. SUMMARY_modules="${SUMMARY_modules} video"
  17659. fi
  17660. # Check whether --enable-render was given.
  17661. if test ${enable_render+y}
  17662. then :
  17663. enableval=$enable_render;
  17664. else $as_nop
  17665. enable_render=yes
  17666. fi
  17667. if test x$enable_render != xyes; then
  17668. printf "%s\n" "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  17669. else
  17670. SUMMARY_modules="${SUMMARY_modules} render"
  17671. fi
  17672. # Check whether --enable-events was given.
  17673. if test ${enable_events+y}
  17674. then :
  17675. enableval=$enable_events;
  17676. else $as_nop
  17677. enable_events=yes
  17678. fi
  17679. if test x$enable_events != xyes; then
  17680. printf "%s\n" "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  17681. else
  17682. SUMMARY_modules="${SUMMARY_modules} events"
  17683. fi
  17684. # Check whether --enable-joystick was given.
  17685. if test ${enable_joystick+y}
  17686. then :
  17687. enableval=$enable_joystick;
  17688. else $as_nop
  17689. enable_joystick=yes
  17690. fi
  17691. if test x$enable_joystick != xyes; then
  17692. printf "%s\n" "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  17693. else
  17694. SUMMARY_modules="${SUMMARY_modules} joystick"
  17695. fi
  17696. # Check whether --enable-haptic was given.
  17697. if test ${enable_haptic+y}
  17698. then :
  17699. enableval=$enable_haptic;
  17700. else $as_nop
  17701. enable_haptic=yes
  17702. fi
  17703. if test x$enable_haptic != xyes; then
  17704. printf "%s\n" "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  17705. else
  17706. SUMMARY_modules="${SUMMARY_modules} haptic"
  17707. fi
  17708. # Check whether --enable-hidapi was given.
  17709. if test ${enable_hidapi+y}
  17710. then :
  17711. enableval=$enable_hidapi;
  17712. else $as_nop
  17713. enable_hidapi=yes
  17714. fi
  17715. if test x$enable_hidapi != xyes; then
  17716. printf "%s\n" "#define SDL_HIDAPI_DISABLED 1" >>confdefs.h
  17717. else
  17718. SUMMARY_modules="${SUMMARY_modules} hidapi"
  17719. fi
  17720. # Check whether --enable-sensor was given.
  17721. if test ${enable_sensor+y}
  17722. then :
  17723. enableval=$enable_sensor;
  17724. else $as_nop
  17725. enable_sensor=yes
  17726. fi
  17727. if test x$enable_sensor != xyes; then
  17728. printf "%s\n" "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  17729. else
  17730. SUMMARY_modules="${SUMMARY_modules} sensor"
  17731. fi
  17732. # Check whether --enable-power was given.
  17733. if test ${enable_power+y}
  17734. then :
  17735. enableval=$enable_power;
  17736. else $as_nop
  17737. enable_power=yes
  17738. fi
  17739. if test x$enable_power != xyes; then
  17740. printf "%s\n" "#define SDL_POWER_DISABLED 1" >>confdefs.h
  17741. else
  17742. SUMMARY_modules="${SUMMARY_modules} power"
  17743. fi
  17744. # Check whether --enable-filesystem was given.
  17745. if test ${enable_filesystem+y}
  17746. then :
  17747. enableval=$enable_filesystem;
  17748. else $as_nop
  17749. enable_filesystem=yes
  17750. fi
  17751. if test x$enable_filesystem != xyes; then
  17752. printf "%s\n" "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  17753. else
  17754. SUMMARY_modules="${SUMMARY_modules} filesystem"
  17755. fi
  17756. # Many subsystems depend on threads, so leave them enabled by default
  17757. #AC_ARG_ENABLE(threads,
  17758. #[AS_HELP_STRING([--enable-threads], [Enable the threading subsystem [default=yes]])],
  17759. # , enable_threads=yes)
  17760. enable_threads=yes
  17761. if test x$enable_threads != xyes; then
  17762. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  17763. else
  17764. SUMMARY_modules="${SUMMARY_modules} threads"
  17765. fi
  17766. # Check whether --enable-timers was given.
  17767. if test ${enable_timers+y}
  17768. then :
  17769. enableval=$enable_timers;
  17770. else $as_nop
  17771. enable_timers=yes
  17772. fi
  17773. if test x$enable_timers != xyes; then
  17774. printf "%s\n" "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  17775. else
  17776. SUMMARY_modules="${SUMMARY_modules} timers"
  17777. fi
  17778. # Check whether --enable-file was given.
  17779. if test ${enable_file+y}
  17780. then :
  17781. enableval=$enable_file;
  17782. else $as_nop
  17783. enable_file=yes
  17784. fi
  17785. if test x$enable_file != xyes; then
  17786. printf "%s\n" "#define SDL_FILE_DISABLED 1" >>confdefs.h
  17787. else
  17788. SUMMARY_modules="${SUMMARY_modules} file"
  17789. fi
  17790. # Check whether --enable-misc was given.
  17791. if test ${enable_misc+y}
  17792. then :
  17793. enableval=$enable_misc;
  17794. else $as_nop
  17795. enable_misc=yes
  17796. fi
  17797. if test x$enable_misc != xyes; then
  17798. printf "%s\n" "#define SDL_MISC_DISABLED 1" >>confdefs.h
  17799. else
  17800. SUMMARY_modules="${SUMMARY_modules} misc"
  17801. fi
  17802. # Check whether --enable-locale was given.
  17803. if test ${enable_locale+y}
  17804. then :
  17805. enableval=$enable_locale;
  17806. else $as_nop
  17807. enable_locale=yes
  17808. fi
  17809. if test x$enable_locale != xyes; then
  17810. printf "%s\n" "#define SDL_LOCALE_DISABLED 1" >>confdefs.h
  17811. else
  17812. SUMMARY_modules="${SUMMARY_modules} locale"
  17813. fi
  17814. # Check whether --enable-loadso was given.
  17815. if test ${enable_loadso+y}
  17816. then :
  17817. enableval=$enable_loadso;
  17818. else $as_nop
  17819. enable_loadso=yes
  17820. fi
  17821. if test x$enable_loadso != xyes; then
  17822. printf "%s\n" "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  17823. else
  17824. SUMMARY_modules="${SUMMARY_modules} loadso"
  17825. fi
  17826. # Check whether --enable-cpuinfo was given.
  17827. if test ${enable_cpuinfo+y}
  17828. then :
  17829. enableval=$enable_cpuinfo;
  17830. else $as_nop
  17831. enable_cpuinfo=yes
  17832. fi
  17833. if test x$enable_cpuinfo != xyes; then
  17834. printf "%s\n" "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  17835. else
  17836. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  17837. fi
  17838. # Check whether --enable-assembly was given.
  17839. if test ${enable_assembly+y}
  17840. then :
  17841. enableval=$enable_assembly;
  17842. else $as_nop
  17843. enable_assembly=yes
  17844. fi
  17845. if test x$enable_assembly = xyes; then
  17846. SUMMARY_modules="${SUMMARY_modules} assembly"
  17847. # Make sure that we don't generate floating point code that would
  17848. # cause illegal instruction exceptions on older processors
  17849. case "$host" in
  17850. *-*-darwin*)
  17851. # Don't need to worry about Apple hardware, it's all SSE capable
  17852. default_ssemath=yes
  17853. ;;
  17854. *64-*-*)
  17855. # x86 64-bit architectures all have SSE instructions
  17856. default_ssemath=yes
  17857. ;;
  17858. *)
  17859. default_ssemath=no
  17860. ;;
  17861. esac
  17862. # Check whether --enable-ssemath was given.
  17863. if test ${enable_ssemath+y}
  17864. then :
  17865. enableval=$enable_ssemath;
  17866. else $as_nop
  17867. enable_ssemath=$default_ssemath
  17868. fi
  17869. if test x$enable_ssemath = xno; then
  17870. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  17871. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  17872. fi
  17873. fi
  17874. # Check whether --enable-mmx was given.
  17875. if test ${enable_mmx+y}
  17876. then :
  17877. enableval=$enable_mmx;
  17878. else $as_nop
  17879. enable_mmx=yes
  17880. fi
  17881. if test x$enable_mmx = xyes; then
  17882. save_CFLAGS="$CFLAGS"
  17883. have_gcc_mmx=no
  17884. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  17885. printf %s "checking for GCC -mmmx option... " >&6; }
  17886. mmx_CFLAGS="-mmmx"
  17887. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  17888. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17889. /* end confdefs.h. */
  17890. #ifdef __MINGW32__
  17891. #include <_mingw.h>
  17892. #ifdef __MINGW64_VERSION_MAJOR
  17893. #include <intrin.h>
  17894. #else
  17895. #include <mmintrin.h>
  17896. #endif
  17897. #else
  17898. #include <mmintrin.h>
  17899. #endif
  17900. #ifndef __MMX__
  17901. #error Assembler CPP flag not enabled
  17902. #endif
  17903. int
  17904. main (void)
  17905. {
  17906. ;
  17907. return 0;
  17908. }
  17909. _ACEOF
  17910. if ac_fn_c_try_compile "$LINENO"
  17911. then :
  17912. have_gcc_mmx=yes
  17913. fi
  17914. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17915. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  17916. printf "%s\n" "$have_gcc_mmx" >&6; }
  17917. CFLAGS="$save_CFLAGS"
  17918. if test x$have_gcc_mmx = xyes; then
  17919. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  17920. SUMMARY_math="${SUMMARY_math} mmx"
  17921. fi
  17922. fi
  17923. # Check whether --enable-3dnow was given.
  17924. if test ${enable_3dnow+y}
  17925. then :
  17926. enableval=$enable_3dnow;
  17927. else $as_nop
  17928. enable_3dnow=yes
  17929. fi
  17930. if test x$enable_3dnow = xyes; then
  17931. save_CFLAGS="$CFLAGS"
  17932. have_gcc_3dnow=no
  17933. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  17934. printf %s "checking for GCC -m3dnow option... " >&6; }
  17935. amd3dnow_CFLAGS="-m3dnow"
  17936. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  17937. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17938. /* end confdefs.h. */
  17939. #include <mm3dnow.h>
  17940. #ifndef __3dNOW__
  17941. #error Assembler CPP flag not enabled
  17942. #endif
  17943. int
  17944. main (void)
  17945. {
  17946. void *p = 0;
  17947. _m_prefetch(p);
  17948. ;
  17949. return 0;
  17950. }
  17951. _ACEOF
  17952. if ac_fn_c_try_link "$LINENO"
  17953. then :
  17954. have_gcc_3dnow=yes
  17955. fi
  17956. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17957. conftest$ac_exeext conftest.$ac_ext
  17958. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  17959. printf "%s\n" "$have_gcc_3dnow" >&6; }
  17960. CFLAGS="$save_CFLAGS"
  17961. if test x$have_gcc_3dnow = xyes; then
  17962. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  17963. SUMMARY_math="${SUMMARY_math} 3dnow"
  17964. fi
  17965. fi
  17966. # Check whether --enable-sse was given.
  17967. if test ${enable_sse+y}
  17968. then :
  17969. enableval=$enable_sse;
  17970. else $as_nop
  17971. enable_sse=yes
  17972. fi
  17973. if test x$enable_sse = xyes; then
  17974. save_CFLAGS="$CFLAGS"
  17975. have_gcc_sse=no
  17976. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  17977. printf %s "checking for GCC -msse option... " >&6; }
  17978. sse_CFLAGS="-msse"
  17979. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  17980. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17981. /* end confdefs.h. */
  17982. #ifdef __MINGW32__
  17983. #include <_mingw.h>
  17984. #ifdef __MINGW64_VERSION_MAJOR
  17985. #include <intrin.h>
  17986. #else
  17987. #include <xmmintrin.h>
  17988. #endif
  17989. #else
  17990. #include <xmmintrin.h>
  17991. #endif
  17992. #ifndef __SSE__
  17993. #error Assembler CPP flag not enabled
  17994. #endif
  17995. int
  17996. main (void)
  17997. {
  17998. ;
  17999. return 0;
  18000. }
  18001. _ACEOF
  18002. if ac_fn_c_try_compile "$LINENO"
  18003. then :
  18004. have_gcc_sse=yes
  18005. fi
  18006. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18007. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  18008. printf "%s\n" "$have_gcc_sse" >&6; }
  18009. CFLAGS="$save_CFLAGS"
  18010. if test x$have_gcc_sse = xyes; then
  18011. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  18012. SUMMARY_math="${SUMMARY_math} sse"
  18013. fi
  18014. fi
  18015. # Check whether --enable-sse2 was given.
  18016. if test ${enable_sse2+y}
  18017. then :
  18018. enableval=$enable_sse2;
  18019. else $as_nop
  18020. enable_sse2=$default_ssemath
  18021. fi
  18022. if test x$enable_sse2 = xyes; then
  18023. save_CFLAGS="$CFLAGS"
  18024. have_gcc_sse2=no
  18025. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  18026. printf %s "checking for GCC -msse2 option... " >&6; }
  18027. sse2_CFLAGS="-msse2"
  18028. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  18029. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18030. /* end confdefs.h. */
  18031. #ifdef __MINGW32__
  18032. #include <_mingw.h>
  18033. #ifdef __MINGW64_VERSION_MAJOR
  18034. #include <intrin.h>
  18035. #else
  18036. #include <emmintrin.h>
  18037. #endif
  18038. #else
  18039. #include <emmintrin.h>
  18040. #endif
  18041. #ifndef __SSE2__
  18042. #error Assembler CPP flag not enabled
  18043. #endif
  18044. int
  18045. main (void)
  18046. {
  18047. ;
  18048. return 0;
  18049. }
  18050. _ACEOF
  18051. if ac_fn_c_try_compile "$LINENO"
  18052. then :
  18053. have_gcc_sse2=yes
  18054. fi
  18055. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18056. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  18057. printf "%s\n" "$have_gcc_sse2" >&6; }
  18058. CFLAGS="$save_CFLAGS"
  18059. if test x$have_gcc_sse2 = xyes; then
  18060. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  18061. SUMMARY_math="${SUMMARY_math} sse2"
  18062. fi
  18063. fi
  18064. # Check whether --enable-sse3 was given.
  18065. if test ${enable_sse3+y}
  18066. then :
  18067. enableval=$enable_sse3;
  18068. else $as_nop
  18069. enable_sse3=$default_ssemath
  18070. fi
  18071. if test x$enable_sse3 = xyes; then
  18072. save_CFLAGS="$CFLAGS"
  18073. have_gcc_sse3=no
  18074. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  18075. printf %s "checking for GCC -msse3 option... " >&6; }
  18076. sse3_CFLAGS="-msse3"
  18077. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  18078. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18079. /* end confdefs.h. */
  18080. #ifdef __MINGW32__
  18081. #include <_mingw.h>
  18082. #ifdef __MINGW64_VERSION_MAJOR
  18083. #include <intrin.h>
  18084. #else
  18085. #include <pmmintrin.h>
  18086. #endif
  18087. #else
  18088. #include <pmmintrin.h>
  18089. #endif
  18090. #ifndef __SSE2__
  18091. #error Assembler CPP flag not enabled
  18092. #endif
  18093. int
  18094. main (void)
  18095. {
  18096. ;
  18097. return 0;
  18098. }
  18099. _ACEOF
  18100. if ac_fn_c_try_compile "$LINENO"
  18101. then :
  18102. have_gcc_sse3=yes
  18103. fi
  18104. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18105. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  18106. printf "%s\n" "$have_gcc_sse3" >&6; }
  18107. CFLAGS="$save_CFLAGS"
  18108. if test x$have_gcc_sse3 = xyes; then
  18109. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  18110. SUMMARY_math="${SUMMARY_math} sse3"
  18111. fi
  18112. fi
  18113. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for immintrin.h" >&5
  18114. printf %s "checking for immintrin.h... " >&6; }
  18115. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18116. /* end confdefs.h. */
  18117. #include <immintrin.h>
  18118. int
  18119. main (void)
  18120. {
  18121. ;
  18122. return 0;
  18123. }
  18124. _ACEOF
  18125. if ac_fn_c_try_compile "$LINENO"
  18126. then :
  18127. have_immintrin_h_hdr=yes
  18128. else $as_nop
  18129. have_immintrin_h_hdr=no
  18130. fi
  18131. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18132. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_immintrin_h_hdr" >&5
  18133. printf "%s\n" "$have_immintrin_h_hdr" >&6; }
  18134. if test x$have_immintrin_h_hdr = xyes; then
  18135. printf "%s\n" "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  18136. fi
  18137. # Check whether --enable-altivec was given.
  18138. if test ${enable_altivec+y}
  18139. then :
  18140. enableval=$enable_altivec;
  18141. else $as_nop
  18142. enable_altivec=yes
  18143. fi
  18144. if test x$enable_altivec = xyes; then
  18145. save_CFLAGS="$CFLAGS"
  18146. have_gcc_altivec=no
  18147. have_altivec_h_hdr=no
  18148. altivec_CFLAGS="-maltivec"
  18149. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  18150. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  18151. printf %s "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  18152. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18153. /* end confdefs.h. */
  18154. #include <altivec.h>
  18155. vector unsigned int vzero() {
  18156. return vec_splat_u32(0);
  18157. }
  18158. int
  18159. main (void)
  18160. {
  18161. ;
  18162. return 0;
  18163. }
  18164. _ACEOF
  18165. if ac_fn_c_try_compile "$LINENO"
  18166. then :
  18167. have_gcc_altivec=yes
  18168. have_altivec_h_hdr=yes
  18169. fi
  18170. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18171. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18172. printf "%s\n" "$have_gcc_altivec" >&6; }
  18173. if test x$have_gcc_altivec = xno; then
  18174. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  18175. printf %s "checking for Altivec with GCC -maltivec option... " >&6; }
  18176. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18177. /* end confdefs.h. */
  18178. vector unsigned int vzero() {
  18179. return vec_splat_u32(0);
  18180. }
  18181. int
  18182. main (void)
  18183. {
  18184. ;
  18185. return 0;
  18186. }
  18187. _ACEOF
  18188. if ac_fn_c_try_compile "$LINENO"
  18189. then :
  18190. have_gcc_altivec=yes
  18191. fi
  18192. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18193. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18194. printf "%s\n" "$have_gcc_altivec" >&6; }
  18195. fi
  18196. if test x$have_gcc_altivec = xno; then
  18197. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  18198. printf %s "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  18199. altivec_CFLAGS="-faltivec"
  18200. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  18201. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18202. /* end confdefs.h. */
  18203. #include <altivec.h>
  18204. vector unsigned int vzero() {
  18205. return vec_splat_u32(0);
  18206. }
  18207. int
  18208. main (void)
  18209. {
  18210. ;
  18211. return 0;
  18212. }
  18213. _ACEOF
  18214. if ac_fn_c_try_compile "$LINENO"
  18215. then :
  18216. have_gcc_altivec=yes
  18217. have_altivec_h_hdr=yes
  18218. fi
  18219. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18220. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18221. printf "%s\n" "$have_gcc_altivec" >&6; }
  18222. fi
  18223. if test x$have_gcc_altivec = xno; then
  18224. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  18225. printf %s "checking for Altivec with GCC -faltivec option... " >&6; }
  18226. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18227. /* end confdefs.h. */
  18228. vector unsigned int vzero() {
  18229. return vec_splat_u32(0);
  18230. }
  18231. int
  18232. main (void)
  18233. {
  18234. ;
  18235. return 0;
  18236. }
  18237. _ACEOF
  18238. if ac_fn_c_try_compile "$LINENO"
  18239. then :
  18240. have_gcc_altivec=yes
  18241. fi
  18242. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18243. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18244. printf "%s\n" "$have_gcc_altivec" >&6; }
  18245. fi
  18246. CFLAGS="$save_CFLAGS"
  18247. if test x$have_gcc_altivec = xyes; then
  18248. printf "%s\n" "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  18249. if test x$have_altivec_h_hdr = xyes; then
  18250. printf "%s\n" "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  18251. fi
  18252. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  18253. SUMMARY_math="${SUMMARY_math} altivec"
  18254. fi
  18255. fi
  18256. fi
  18257. # Check whether --enable-lsx was given.
  18258. if test ${enable_lsx+y}
  18259. then :
  18260. enableval=$enable_lsx;
  18261. else $as_nop
  18262. enable_lsx=yes
  18263. fi
  18264. if test x$enable_lsx = xyes; then
  18265. save_CFLAGS="$CFLAGS"
  18266. have_gcc_lsx=no
  18267. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mlsx option" >&5
  18268. printf %s "checking for GCC -mlsx option... " >&6; }
  18269. lsx_CFLAGS="-mlsx"
  18270. CFLAGS="$save_CFLAGS $lsx_CFLAGS"
  18271. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18272. /* end confdefs.h. */
  18273. #ifndef __loongarch_sx
  18274. #error Assembler CPP flag not enabled
  18275. #endif
  18276. int
  18277. main (void)
  18278. {
  18279. ;
  18280. return 0;
  18281. }
  18282. _ACEOF
  18283. if ac_fn_c_try_compile "$LINENO"
  18284. then :
  18285. have_gcc_lsx=yes
  18286. fi
  18287. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18288. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_lsx" >&5
  18289. printf "%s\n" "$have_gcc_lsx" >&6; }
  18290. CFLAGS="$save_CFLAGS"
  18291. if test x$have_gcc_lsx = xyes; then
  18292. EXTRA_CFLAGS="$EXTRA_CFLAGS $lsx_CFLAGS"
  18293. SUMMARY_math="${SUMMARY_math} lsx"
  18294. fi
  18295. fi
  18296. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lsxintrin.h" >&5
  18297. printf %s "checking for lsxintrin.h... " >&6; }
  18298. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18299. /* end confdefs.h. */
  18300. #include <lsxintrin.h>
  18301. int
  18302. main (void)
  18303. {
  18304. ;
  18305. return 0;
  18306. }
  18307. _ACEOF
  18308. if ac_fn_c_try_compile "$LINENO"
  18309. then :
  18310. have_lsxintrin_h_hdr=yes
  18311. else $as_nop
  18312. have_lsxintrin_h_hdr=no
  18313. fi
  18314. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18315. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_lsxintrin_h_hdr" >&5
  18316. printf "%s\n" "$have_lsxintrin_h_hdr" >&6; }
  18317. if test x$have_lsxintrin_h_hdr = xyes; then
  18318. printf "%s\n" "#define HAVE_LSXINTRIN_H 1" >>confdefs.h
  18319. fi
  18320. # Check whether --enable-lasx was given.
  18321. if test ${enable_lasx+y}
  18322. then :
  18323. enableval=$enable_lasx;
  18324. else $as_nop
  18325. enable_LASX=yes
  18326. fi
  18327. if test x$enable_LASX = xyes; then
  18328. save_CFLAGS="$CFLAGS"
  18329. have_gcc_lasx=no
  18330. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mlasx option" >&5
  18331. printf %s "checking for GCC -mlasx option... " >&6; }
  18332. lasx_CFLAGS="-mlasx"
  18333. CFLAGS="$save_CFLAGS $lasx_CFLAGS"
  18334. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18335. /* end confdefs.h. */
  18336. #ifndef __loongarch_asx
  18337. #error Assembler CPP flag not enabled
  18338. #endif
  18339. int
  18340. main (void)
  18341. {
  18342. ;
  18343. return 0;
  18344. }
  18345. _ACEOF
  18346. if ac_fn_c_try_compile "$LINENO"
  18347. then :
  18348. have_gcc_lasx=yes
  18349. fi
  18350. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18351. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_lasx" >&5
  18352. printf "%s\n" "$have_gcc_lasx" >&6; }
  18353. CFLAGS="$save_CFLAGS"
  18354. if test x$have_gcc_lasx = xyes; then
  18355. EXTRA_CFLAGS="$EXTRA_CFLAGS $lasx_CFLAGS"
  18356. SUMMARY_math="${SUMMARY_math} lasx"
  18357. fi
  18358. fi
  18359. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lasxintrin.h" >&5
  18360. printf %s "checking for lasxintrin.h... " >&6; }
  18361. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18362. /* end confdefs.h. */
  18363. #include <lasxintrin.h>
  18364. int
  18365. main (void)
  18366. {
  18367. ;
  18368. return 0;
  18369. }
  18370. _ACEOF
  18371. if ac_fn_c_try_compile "$LINENO"
  18372. then :
  18373. have_lasxintrin_h_hdr=yes
  18374. else $as_nop
  18375. have_lasxintrin_h_hdr=no
  18376. fi
  18377. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18378. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_lasxintrin_h_hdr" >&5
  18379. printf "%s\n" "$have_lasxintrin_h_hdr" >&6; }
  18380. if test x$have_lasxintrin_h_hdr = xyes; then
  18381. printf "%s\n" "#define HAVE_LASXINTRIN_H 1" >>confdefs.h
  18382. fi
  18383. CheckOSS()
  18384. {
  18385. # Check whether --enable-oss was given.
  18386. if test ${enable_oss+y}
  18387. then :
  18388. enableval=$enable_oss;
  18389. else $as_nop
  18390. enable_oss=maybe
  18391. fi
  18392. if test x$enable_oss = xmaybe; then
  18393. enable_oss=yes
  18394. fi
  18395. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  18396. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  18397. printf %s "checking for OSS audio support... " >&6; }
  18398. have_oss=no
  18399. if test x$have_oss != xyes; then
  18400. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18401. /* end confdefs.h. */
  18402. #include <sys/soundcard.h>
  18403. int
  18404. main (void)
  18405. {
  18406. int arg = SNDCTL_DSP_SETFRAGMENT;
  18407. ;
  18408. return 0;
  18409. }
  18410. _ACEOF
  18411. if ac_fn_c_try_compile "$LINENO"
  18412. then :
  18413. have_oss=yes
  18414. fi
  18415. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18416. fi
  18417. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  18418. printf "%s\n" "$have_oss" >&6; }
  18419. if test x$have_oss = xyes; then
  18420. SUMMARY_audio="${SUMMARY_audio} oss"
  18421. printf "%s\n" "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  18422. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  18423. have_audio=yes
  18424. # We may need to link with ossaudio emulation library
  18425. case "$host" in
  18426. *-*-netbsd*)
  18427. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  18428. esac
  18429. fi
  18430. fi
  18431. }
  18432. CheckALSA()
  18433. {
  18434. # Check whether --enable-alsa was given.
  18435. if test ${enable_alsa+y}
  18436. then :
  18437. enableval=$enable_alsa;
  18438. else $as_nop
  18439. enable_alsa=yes
  18440. fi
  18441. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  18442. alsa_save_CFLAGS="$CFLAGS"
  18443. alsa_save_LDFLAGS="$LDFLAGS"
  18444. alsa_save_LIBS="$LIBS"
  18445. alsa_found=yes
  18446. # Check whether --with-alsa-prefix was given.
  18447. if test ${with_alsa_prefix+y}
  18448. then :
  18449. withval=$with_alsa_prefix; alsa_prefix="$withval"
  18450. else $as_nop
  18451. alsa_prefix=""
  18452. fi
  18453. # Check whether --with-alsa-inc-prefix was given.
  18454. if test ${with_alsa_inc_prefix+y}
  18455. then :
  18456. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  18457. else $as_nop
  18458. alsa_inc_prefix=""
  18459. fi
  18460. # Check whether --enable-alsatest was given.
  18461. if test ${enable_alsatest+y}
  18462. then :
  18463. enableval=$enable_alsatest; enable_alsatest="$enableval"
  18464. else $as_nop
  18465. enable_alsatest=yes
  18466. fi
  18467. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  18468. printf %s "checking for ALSA CFLAGS... " >&6; }
  18469. if test "$alsa_inc_prefix" != "" ; then
  18470. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  18471. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  18472. fi
  18473. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  18474. printf "%s\n" "$ALSA_CFLAGS" >&6; }
  18475. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  18476. printf %s "checking for ALSA LDFLAGS... " >&6; }
  18477. if test "$alsa_prefix" != "" ; then
  18478. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  18479. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  18480. fi
  18481. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  18482. LIBS=`echo $LIBS | sed 's/-lm//'`
  18483. LIBS=`echo $LIBS | sed 's/-ldl//'`
  18484. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  18485. LIBS=`echo $LIBS | sed 's/ //'`
  18486. LIBS="$ALSA_LIBS $LIBS"
  18487. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  18488. printf "%s\n" "$ALSA_LIBS" >&6; }
  18489. min_alsa_version=1.0.11
  18490. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  18491. printf %s "checking for libasound headers version >= $min_alsa_version... " >&6; }
  18492. no_alsa=""
  18493. alsa_min_major_version=`echo $min_alsa_version | \
  18494. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  18495. alsa_min_minor_version=`echo $min_alsa_version | \
  18496. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  18497. alsa_min_micro_version=`echo $min_alsa_version | \
  18498. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  18499. ac_ext=c
  18500. ac_cpp='$CPP $CPPFLAGS'
  18501. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18502. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18503. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18504. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18505. /* end confdefs.h. */
  18506. #include <alsa/asoundlib.h>
  18507. int
  18508. main (void)
  18509. {
  18510. /* ensure backward compatibility */
  18511. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  18512. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  18513. #endif
  18514. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  18515. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  18516. #endif
  18517. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  18518. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  18519. #endif
  18520. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  18521. exit(0);
  18522. # else
  18523. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  18524. # error not present
  18525. # endif
  18526. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  18527. exit(0);
  18528. # else
  18529. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  18530. # error not present
  18531. # endif
  18532. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  18533. # error not present
  18534. # endif
  18535. # endif
  18536. # endif
  18537. exit(0);
  18538. ;
  18539. return 0;
  18540. }
  18541. _ACEOF
  18542. if ac_fn_c_try_compile "$LINENO"
  18543. then :
  18544. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found." >&5
  18545. printf "%s\n" "found." >&6; }
  18546. else $as_nop
  18547. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  18548. printf "%s\n" "not present." >&6; }
  18549. alsa_found=no
  18550. fi
  18551. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18552. ac_ext=c
  18553. ac_cpp='$CPP $CPPFLAGS'
  18554. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18555. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18556. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18557. if test "x$enable_alsatest" = "xyes"; then
  18558. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  18559. printf %s "checking for snd_ctl_open in -lasound... " >&6; }
  18560. if test ${ac_cv_lib_asound_snd_ctl_open+y}
  18561. then :
  18562. printf %s "(cached) " >&6
  18563. else $as_nop
  18564. ac_check_lib_save_LIBS=$LIBS
  18565. LIBS="-lasound $LIBS"
  18566. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18567. /* end confdefs.h. */
  18568. /* Override any GCC internal prototype to avoid an error.
  18569. Use char because int might match the return type of a GCC
  18570. builtin and then its argument prototype would still apply. */
  18571. char snd_ctl_open ();
  18572. int
  18573. main (void)
  18574. {
  18575. return snd_ctl_open ();
  18576. ;
  18577. return 0;
  18578. }
  18579. _ACEOF
  18580. if ac_fn_c_try_link "$LINENO"
  18581. then :
  18582. ac_cv_lib_asound_snd_ctl_open=yes
  18583. else $as_nop
  18584. ac_cv_lib_asound_snd_ctl_open=no
  18585. fi
  18586. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18587. conftest$ac_exeext conftest.$ac_ext
  18588. LIBS=$ac_check_lib_save_LIBS
  18589. fi
  18590. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  18591. printf "%s\n" "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  18592. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes
  18593. then :
  18594. printf "%s\n" "#define HAVE_LIBASOUND 1" >>confdefs.h
  18595. LIBS="-lasound $LIBS"
  18596. else $as_nop
  18597. alsa_found=no
  18598. fi
  18599. fi
  18600. if test "x$alsa_found" = "xyes" ; then
  18601. have_alsa=yes
  18602. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  18603. LIBS=`echo $LIBS | sed 's/ //'`
  18604. LIBS="-lasound $LIBS"
  18605. fi
  18606. if test "x$alsa_found" = "xno" ; then
  18607. have_alsa=no
  18608. CFLAGS="$alsa_save_CFLAGS"
  18609. LDFLAGS="$alsa_save_LDFLAGS"
  18610. LIBS="$alsa_save_LIBS"
  18611. ALSA_CFLAGS=""
  18612. ALSA_LIBS=""
  18613. fi
  18614. # Restore all flags from before the ALSA detection runs
  18615. CFLAGS="$alsa_save_CFLAGS"
  18616. LDFLAGS="$alsa_save_LDFLAGS"
  18617. LIBS="$alsa_save_LIBS"
  18618. if test x$have_alsa = xyes; then
  18619. # Check whether --enable-alsa-shared was given.
  18620. if test ${enable_alsa_shared+y}
  18621. then :
  18622. enableval=$enable_alsa_shared;
  18623. else $as_nop
  18624. enable_alsa_shared=yes
  18625. fi
  18626. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18627. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  18628. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  18629. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  18630. if test x$have_loadso != xyes && \
  18631. test x$enable_alsa_shared = xyes; then
  18632. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  18633. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  18634. fi
  18635. if test x$have_loadso = xyes && \
  18636. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  18637. echo "-- dynamic libasound -> $alsa_lib"
  18638. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA_DYNAMIC \"$alsa_lib\"" >>confdefs.h
  18639. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  18640. else
  18641. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  18642. SUMMARY_audio="${SUMMARY_audio} alsa"
  18643. fi
  18644. have_audio=yes
  18645. fi
  18646. fi
  18647. }
  18648. CheckJACK()
  18649. {
  18650. # Check whether --enable-jack was given.
  18651. if test ${enable_jack+y}
  18652. then :
  18653. enableval=$enable_jack;
  18654. else $as_nop
  18655. enable_jack=yes
  18656. fi
  18657. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  18658. pkg_failed=no
  18659. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jack >= 0.125" >&5
  18660. printf %s "checking for jack >= 0.125... " >&6; }
  18661. if test -n "$JACK_CFLAGS"; then
  18662. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  18663. elif test -n "$PKG_CONFIG"; then
  18664. if test -n "$PKG_CONFIG" && \
  18665. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  18666. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  18667. ac_status=$?
  18668. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18669. test $ac_status = 0; }; then
  18670. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  18671. test "x$?" != "x0" && pkg_failed=yes
  18672. else
  18673. pkg_failed=yes
  18674. fi
  18675. else
  18676. pkg_failed=untried
  18677. fi
  18678. if test -n "$JACK_LIBS"; then
  18679. pkg_cv_JACK_LIBS="$JACK_LIBS"
  18680. elif test -n "$PKG_CONFIG"; then
  18681. if test -n "$PKG_CONFIG" && \
  18682. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  18683. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  18684. ac_status=$?
  18685. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18686. test $ac_status = 0; }; then
  18687. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  18688. test "x$?" != "x0" && pkg_failed=yes
  18689. else
  18690. pkg_failed=yes
  18691. fi
  18692. else
  18693. pkg_failed=untried
  18694. fi
  18695. if test $pkg_failed = yes; then
  18696. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18697. printf "%s\n" "no" >&6; }
  18698. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18699. _pkg_short_errors_supported=yes
  18700. else
  18701. _pkg_short_errors_supported=no
  18702. fi
  18703. if test $_pkg_short_errors_supported = yes; then
  18704. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  18705. else
  18706. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  18707. fi
  18708. # Put the nasty error message in config.log where it belongs
  18709. echo "$JACK_PKG_ERRORS" >&5
  18710. audio_jack=no
  18711. elif test $pkg_failed = untried; then
  18712. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18713. printf "%s\n" "no" >&6; }
  18714. audio_jack=no
  18715. else
  18716. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  18717. JACK_LIBS=$pkg_cv_JACK_LIBS
  18718. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18719. printf "%s\n" "yes" >&6; }
  18720. audio_jack=yes
  18721. fi
  18722. if test x$audio_jack = xyes; then
  18723. # Check whether --enable-jack-shared was given.
  18724. if test ${enable_jack_shared+y}
  18725. then :
  18726. enableval=$enable_jack_shared;
  18727. else $as_nop
  18728. enable_jack_shared=yes
  18729. fi
  18730. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18731. printf "%s\n" "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  18732. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  18733. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  18734. if test x$have_loadso != xyes && \
  18735. test x$enable_jack_shared = xyes; then
  18736. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  18737. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  18738. fi
  18739. if test x$have_loadso = xyes && \
  18740. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  18741. echo "-- dynamic libjack -> $jack_lib"
  18742. printf "%s\n" "#define SDL_AUDIO_DRIVER_JACK_DYNAMIC \"$jack_lib\"" >>confdefs.h
  18743. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  18744. case "$host" in
  18745. # On Solaris, jack must be linked deferred explicitly
  18746. # to prevent undefined symbol failures.
  18747. *-*-solaris*)
  18748. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  18749. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  18750. esac
  18751. else
  18752. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  18753. SUMMARY_audio="${SUMMARY_audio} jack"
  18754. fi
  18755. have_audio=yes
  18756. fi
  18757. fi
  18758. }
  18759. CheckESD()
  18760. {
  18761. # Check whether --enable-esd was given.
  18762. if test ${enable_esd+y}
  18763. then :
  18764. enableval=$enable_esd;
  18765. else $as_nop
  18766. enable_esd=yes
  18767. fi
  18768. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  18769. pkg_failed=no
  18770. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for esound >= 0.2.8" >&5
  18771. printf %s "checking for esound >= 0.2.8... " >&6; }
  18772. if test -n "$ESD_CFLAGS"; then
  18773. pkg_cv_ESD_CFLAGS="$ESD_CFLAGS"
  18774. elif test -n "$PKG_CONFIG"; then
  18775. if test -n "$PKG_CONFIG" && \
  18776. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"esound >= 0.2.8\""; } >&5
  18777. ($PKG_CONFIG --exists --print-errors "esound >= 0.2.8") 2>&5
  18778. ac_status=$?
  18779. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18780. test $ac_status = 0; }; then
  18781. pkg_cv_ESD_CFLAGS=`$PKG_CONFIG --cflags "esound >= 0.2.8" 2>/dev/null`
  18782. test "x$?" != "x0" && pkg_failed=yes
  18783. else
  18784. pkg_failed=yes
  18785. fi
  18786. else
  18787. pkg_failed=untried
  18788. fi
  18789. if test -n "$ESD_LIBS"; then
  18790. pkg_cv_ESD_LIBS="$ESD_LIBS"
  18791. elif test -n "$PKG_CONFIG"; then
  18792. if test -n "$PKG_CONFIG" && \
  18793. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"esound >= 0.2.8\""; } >&5
  18794. ($PKG_CONFIG --exists --print-errors "esound >= 0.2.8") 2>&5
  18795. ac_status=$?
  18796. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18797. test $ac_status = 0; }; then
  18798. pkg_cv_ESD_LIBS=`$PKG_CONFIG --libs "esound >= 0.2.8" 2>/dev/null`
  18799. test "x$?" != "x0" && pkg_failed=yes
  18800. else
  18801. pkg_failed=yes
  18802. fi
  18803. else
  18804. pkg_failed=untried
  18805. fi
  18806. if test $pkg_failed = yes; then
  18807. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18808. printf "%s\n" "no" >&6; }
  18809. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18810. _pkg_short_errors_supported=yes
  18811. else
  18812. _pkg_short_errors_supported=no
  18813. fi
  18814. if test $_pkg_short_errors_supported = yes; then
  18815. ESD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "esound >= 0.2.8" 2>&1`
  18816. else
  18817. ESD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "esound >= 0.2.8" 2>&1`
  18818. fi
  18819. # Put the nasty error message in config.log where it belongs
  18820. echo "$ESD_PKG_ERRORS" >&5
  18821. have_esd=no
  18822. elif test $pkg_failed = untried; then
  18823. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18824. printf "%s\n" "no" >&6; }
  18825. have_esd=no
  18826. else
  18827. ESD_CFLAGS=$pkg_cv_ESD_CFLAGS
  18828. ESD_LIBS=$pkg_cv_ESD_LIBS
  18829. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18830. printf "%s\n" "yes" >&6; }
  18831. have_esd=yes
  18832. fi
  18833. if test x$have_esd = xno; then
  18834. # Check whether --with-esd-prefix was given.
  18835. if test ${with_esd_prefix+y}
  18836. then :
  18837. withval=$with_esd_prefix; esd_prefix="$withval"
  18838. else $as_nop
  18839. esd_prefix=""
  18840. fi
  18841. # Check whether --with-esd-exec-prefix was given.
  18842. if test ${with_esd_exec_prefix+y}
  18843. then :
  18844. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  18845. else $as_nop
  18846. esd_exec_prefix=""
  18847. fi
  18848. # Check whether --enable-esdtest was given.
  18849. if test ${enable_esdtest+y}
  18850. then :
  18851. enableval=$enable_esdtest;
  18852. else $as_nop
  18853. enable_esdtest=yes
  18854. fi
  18855. if test x$esd_exec_prefix != x ; then
  18856. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  18857. if test x${ESD_CONFIG+set} != xset ; then
  18858. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  18859. fi
  18860. fi
  18861. if test x$esd_prefix != x ; then
  18862. esd_args="$esd_args --prefix=$esd_prefix"
  18863. if test x${ESD_CONFIG+set} != xset ; then
  18864. ESD_CONFIG=$esd_prefix/bin/esd-config
  18865. fi
  18866. fi
  18867. # Extract the first word of "esd-config", so it can be a program name with args.
  18868. set dummy esd-config; ac_word=$2
  18869. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18870. printf %s "checking for $ac_word... " >&6; }
  18871. if test ${ac_cv_path_ESD_CONFIG+y}
  18872. then :
  18873. printf %s "(cached) " >&6
  18874. else $as_nop
  18875. case $ESD_CONFIG in
  18876. [\\/]* | ?:[\\/]*)
  18877. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  18878. ;;
  18879. *)
  18880. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18881. for as_dir in $PATH
  18882. do
  18883. IFS=$as_save_IFS
  18884. case $as_dir in #(((
  18885. '') as_dir=./ ;;
  18886. */) ;;
  18887. *) as_dir=$as_dir/ ;;
  18888. esac
  18889. for ac_exec_ext in '' $ac_executable_extensions; do
  18890. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  18891. ac_cv_path_ESD_CONFIG="$as_dir$ac_word$ac_exec_ext"
  18892. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  18893. break 2
  18894. fi
  18895. done
  18896. done
  18897. IFS=$as_save_IFS
  18898. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  18899. ;;
  18900. esac
  18901. fi
  18902. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  18903. if test -n "$ESD_CONFIG"; then
  18904. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  18905. printf "%s\n" "$ESD_CONFIG" >&6; }
  18906. else
  18907. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18908. printf "%s\n" "no" >&6; }
  18909. fi
  18910. min_esd_version=0.2.8
  18911. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  18912. printf %s "checking for ESD - version >= $min_esd_version... " >&6; }
  18913. no_esd=""
  18914. if test "$ESD_CONFIG" = "no" ; then
  18915. no_esd=yes
  18916. else
  18917. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  18918. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  18919. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  18920. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  18921. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  18922. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  18923. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  18924. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  18925. if test "x$enable_esdtest" = "xyes" ; then
  18926. ac_ext=c
  18927. ac_cpp='$CPP $CPPFLAGS'
  18928. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18929. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18930. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18931. ac_save_CFLAGS="$CFLAGS"
  18932. ac_save_LIBS="$LIBS"
  18933. CFLAGS="$CFLAGS $ESD_CFLAGS"
  18934. LIBS="$LIBS $ESD_LIBS"
  18935. rm -f conf.esdtest
  18936. if test "$cross_compiling" = yes
  18937. then :
  18938. echo $ac_n "cross compiling; assumed OK... $ac_c"
  18939. else $as_nop
  18940. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18941. /* end confdefs.h. */
  18942. #include <stdio.h>
  18943. #include <stdlib.h>
  18944. #include <esd.h>
  18945. int main (void)
  18946. {
  18947. int major, minor, micro;
  18948. FILE *fp = fopen("conf.esdtest", "w");
  18949. if (fp) fclose(fp);
  18950. if (sscanf("$min_esd_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
  18951. printf("%s, bad version string\n", "$min_esd_version");
  18952. exit(1);
  18953. }
  18954. if (($esd_major_version > major) ||
  18955. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  18956. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  18957. {
  18958. return 0;
  18959. }
  18960. else
  18961. {
  18962. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  18963. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  18964. printf("*** best to upgrade to the required version.\n");
  18965. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  18966. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  18967. printf("*** config.cache before re-running configure\n");
  18968. return 1;
  18969. }
  18970. }
  18971. _ACEOF
  18972. if ac_fn_c_try_run "$LINENO"
  18973. then :
  18974. else $as_nop
  18975. no_esd=yes
  18976. fi
  18977. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18978. conftest.$ac_objext conftest.beam conftest.$ac_ext
  18979. fi
  18980. CFLAGS="$ac_save_CFLAGS"
  18981. LIBS="$ac_save_LIBS"
  18982. ac_ext=c
  18983. ac_cpp='$CPP $CPPFLAGS'
  18984. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18985. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18986. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18987. fi
  18988. fi
  18989. if test "x$no_esd" = x ; then
  18990. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18991. printf "%s\n" "yes" >&6; }
  18992. have_esd=yes
  18993. else
  18994. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18995. printf "%s\n" "no" >&6; }
  18996. if test "$ESD_CONFIG" = "no" ; then
  18997. :
  18998. else
  18999. if test -f conf.esdtest ; then
  19000. :
  19001. else
  19002. echo "*** Could not run ESD test program, checking why..."
  19003. CFLAGS="$CFLAGS $ESD_CFLAGS"
  19004. LIBS="$LIBS $ESD_LIBS"
  19005. ac_ext=c
  19006. ac_cpp='$CPP $CPPFLAGS'
  19007. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19008. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19009. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19010. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19011. /* end confdefs.h. */
  19012. #include <stdio.h>
  19013. #include <esd.h>
  19014. int
  19015. main (void)
  19016. {
  19017. return 0;
  19018. ;
  19019. return 0;
  19020. }
  19021. _ACEOF
  19022. if ac_fn_c_try_link "$LINENO"
  19023. then :
  19024. echo "*** The test program compiled, but did not run. This usually means"
  19025. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  19026. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  19027. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  19028. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  19029. echo "*** is required on your system"
  19030. echo "***"
  19031. echo "*** If you have an old version installed, it is best to remove it, although"
  19032. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  19033. else $as_nop
  19034. echo "*** The test program failed to compile or link. See the file config.log for the"
  19035. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  19036. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  19037. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  19038. fi
  19039. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19040. conftest$ac_exeext conftest.$ac_ext
  19041. CFLAGS="$ac_save_CFLAGS"
  19042. LIBS="$ac_save_LIBS"
  19043. ac_ext=c
  19044. ac_cpp='$CPP $CPPFLAGS'
  19045. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19046. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19047. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19048. fi
  19049. fi
  19050. ESD_CFLAGS=""
  19051. ESD_LIBS=""
  19052. have_esd=no
  19053. fi
  19054. rm -f conf.esdtest
  19055. fi
  19056. if test x$have_esd = xyes; then
  19057. # Check whether --enable-esd-shared was given.
  19058. if test ${enable_esd_shared+y}
  19059. then :
  19060. enableval=$enable_esd_shared;
  19061. else $as_nop
  19062. enable_esd_shared=yes
  19063. fi
  19064. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19065. printf "%s\n" "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  19066. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  19067. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  19068. if test x$have_loadso != xyes && \
  19069. test x$enable_esd_shared = xyes; then
  19070. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  19071. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  19072. fi
  19073. if test x$have_loadso = xyes && \
  19074. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  19075. echo "-- dynamic libesd -> $esd_lib"
  19076. printf "%s\n" "#define SDL_AUDIO_DRIVER_ESD_DYNAMIC \"$esd_lib\"" >>confdefs.h
  19077. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  19078. else
  19079. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  19080. SUMMARY_audio="${SUMMARY_audio} esd"
  19081. fi
  19082. have_audio=yes
  19083. fi
  19084. fi
  19085. }
  19086. CheckPipewire()
  19087. {
  19088. # Check whether --enable-pipewire was given.
  19089. if test ${enable_pipewire+y}
  19090. then :
  19091. enableval=$enable_pipewire;
  19092. else $as_nop
  19093. enable_pipewire=yes
  19094. fi
  19095. if test x$enable_audio = xyes -a x$enable_pipewire = xyes; then
  19096. pkg_failed=no
  19097. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpipewire-0.3 >= 0.3.20" >&5
  19098. printf %s "checking for libpipewire-0.3 >= 0.3.20... " >&6; }
  19099. if test -n "$PIPEWIRE_CFLAGS"; then
  19100. pkg_cv_PIPEWIRE_CFLAGS="$PIPEWIRE_CFLAGS"
  19101. elif test -n "$PKG_CONFIG"; then
  19102. if test -n "$PKG_CONFIG" && \
  19103. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  19104. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  19105. ac_status=$?
  19106. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19107. test $ac_status = 0; }; then
  19108. pkg_cv_PIPEWIRE_CFLAGS=`$PKG_CONFIG --cflags "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  19109. test "x$?" != "x0" && pkg_failed=yes
  19110. else
  19111. pkg_failed=yes
  19112. fi
  19113. else
  19114. pkg_failed=untried
  19115. fi
  19116. if test -n "$PIPEWIRE_LIBS"; then
  19117. pkg_cv_PIPEWIRE_LIBS="$PIPEWIRE_LIBS"
  19118. elif test -n "$PKG_CONFIG"; then
  19119. if test -n "$PKG_CONFIG" && \
  19120. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  19121. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  19122. ac_status=$?
  19123. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19124. test $ac_status = 0; }; then
  19125. pkg_cv_PIPEWIRE_LIBS=`$PKG_CONFIG --libs "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  19126. test "x$?" != "x0" && pkg_failed=yes
  19127. else
  19128. pkg_failed=yes
  19129. fi
  19130. else
  19131. pkg_failed=untried
  19132. fi
  19133. if test $pkg_failed = yes; then
  19134. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19135. printf "%s\n" "no" >&6; }
  19136. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19137. _pkg_short_errors_supported=yes
  19138. else
  19139. _pkg_short_errors_supported=no
  19140. fi
  19141. if test $_pkg_short_errors_supported = yes; then
  19142. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  19143. else
  19144. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  19145. fi
  19146. # Put the nasty error message in config.log where it belongs
  19147. echo "$PIPEWIRE_PKG_ERRORS" >&5
  19148. audio_pipewire=no
  19149. elif test $pkg_failed = untried; then
  19150. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19151. printf "%s\n" "no" >&6; }
  19152. audio_pipewire=no
  19153. else
  19154. PIPEWIRE_CFLAGS=$pkg_cv_PIPEWIRE_CFLAGS
  19155. PIPEWIRE_LIBS=$pkg_cv_PIPEWIRE_LIBS
  19156. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19157. printf "%s\n" "yes" >&6; }
  19158. audio_pipewire=yes
  19159. fi
  19160. if test x$audio_pipewire = xyes; then
  19161. # Check whether --enable-pipewire-shared was given.
  19162. if test ${enable_pipewire_shared+y}
  19163. then :
  19164. enableval=$enable_pipewire_shared;
  19165. else $as_nop
  19166. enable_pipewire_shared=yes
  19167. fi
  19168. pipewire_lib=`find_lib "libpipewire-0.3.so.*" "$PIPEWIRE_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19169. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE 1" >>confdefs.h
  19170. SOURCES="$SOURCES $srcdir/src/audio/pipewire/*.c"
  19171. EXTRA_CFLAGS="$EXTRA_CFLAGS $PIPEWIRE_CFLAGS"
  19172. if test x$have_loadso != xyes && \
  19173. test x$enable_pipewire_shared = xyes; then
  19174. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&5
  19175. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&2;}
  19176. fi
  19177. if test x$have_loadso = xyes && \
  19178. test x$enable_pipewire_shared = xyes && test x$pipewire_lib != x; then
  19179. echo "-- dynamic libpipewire-0.3 -> $pipewire_lib"
  19180. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC \"$pipewire_lib\"" >>confdefs.h
  19181. SUMMARY_audio="${SUMMARY_audio} pipewire(dynamic)"
  19182. else
  19183. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PIPEWIRE_LIBS"
  19184. SUMMARY_audio="${SUMMARY_audio} pipewire"
  19185. fi
  19186. have_audio=yes
  19187. fi
  19188. fi
  19189. }
  19190. CheckPulseAudio()
  19191. {
  19192. # Check whether --enable-pulseaudio was given.
  19193. if test ${enable_pulseaudio+y}
  19194. then :
  19195. enableval=$enable_pulseaudio;
  19196. else $as_nop
  19197. enable_pulseaudio=yes
  19198. fi
  19199. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  19200. pkg_failed=no
  19201. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpulse >= 0.9.15" >&5
  19202. printf %s "checking for libpulse >= 0.9.15... " >&6; }
  19203. if test -n "$PULSEAUDIO_CFLAGS"; then
  19204. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  19205. elif test -n "$PKG_CONFIG"; then
  19206. if test -n "$PKG_CONFIG" && \
  19207. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse >= 0.9.15\""; } >&5
  19208. ($PKG_CONFIG --exists --print-errors "libpulse >= 0.9.15") 2>&5
  19209. ac_status=$?
  19210. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19211. test $ac_status = 0; }; then
  19212. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse >= 0.9.15" 2>/dev/null`
  19213. test "x$?" != "x0" && pkg_failed=yes
  19214. else
  19215. pkg_failed=yes
  19216. fi
  19217. else
  19218. pkg_failed=untried
  19219. fi
  19220. if test -n "$PULSEAUDIO_LIBS"; then
  19221. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  19222. elif test -n "$PKG_CONFIG"; then
  19223. if test -n "$PKG_CONFIG" && \
  19224. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse >= 0.9.15\""; } >&5
  19225. ($PKG_CONFIG --exists --print-errors "libpulse >= 0.9.15") 2>&5
  19226. ac_status=$?
  19227. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19228. test $ac_status = 0; }; then
  19229. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse >= 0.9.15" 2>/dev/null`
  19230. test "x$?" != "x0" && pkg_failed=yes
  19231. else
  19232. pkg_failed=yes
  19233. fi
  19234. else
  19235. pkg_failed=untried
  19236. fi
  19237. if test $pkg_failed = yes; then
  19238. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19239. printf "%s\n" "no" >&6; }
  19240. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19241. _pkg_short_errors_supported=yes
  19242. else
  19243. _pkg_short_errors_supported=no
  19244. fi
  19245. if test $_pkg_short_errors_supported = yes; then
  19246. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse >= 0.9.15" 2>&1`
  19247. else
  19248. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse >= 0.9.15" 2>&1`
  19249. fi
  19250. # Put the nasty error message in config.log where it belongs
  19251. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  19252. audio_pulseaudio=no
  19253. elif test $pkg_failed = untried; then
  19254. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19255. printf "%s\n" "no" >&6; }
  19256. audio_pulseaudio=no
  19257. else
  19258. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  19259. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  19260. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19261. printf "%s\n" "yes" >&6; }
  19262. audio_pulseaudio=yes
  19263. fi
  19264. if test x$audio_pulseaudio = xyes; then
  19265. # Check whether --enable-pulseaudio-shared was given.
  19266. if test ${enable_pulseaudio_shared+y}
  19267. then :
  19268. enableval=$enable_pulseaudio_shared;
  19269. else $as_nop
  19270. enable_pulseaudio_shared=yes
  19271. fi
  19272. pulseaudio_lib=`find_lib "libpulse.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19273. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  19274. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  19275. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  19276. if test x$have_loadso != xyes && \
  19277. test x$enable_pulseaudio_shared = xyes; then
  19278. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  19279. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  19280. fi
  19281. if test x$have_loadso = xyes && \
  19282. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  19283. echo "-- dynamic libpulse -> $pulseaudio_lib"
  19284. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC \"$pulseaudio_lib\"" >>confdefs.h
  19285. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  19286. case "$host" in
  19287. # On Solaris, pulseaudio must be linked deferred explicitly
  19288. # to prevent undefined symbol failures.
  19289. *-*-solaris*)
  19290. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  19291. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  19292. esac
  19293. else
  19294. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  19295. SUMMARY_audio="${SUMMARY_audio} pulse"
  19296. fi
  19297. have_audio=yes
  19298. fi
  19299. fi
  19300. }
  19301. CheckARTSC()
  19302. {
  19303. # Check whether --enable-arts was given.
  19304. if test ${enable_arts+y}
  19305. then :
  19306. enableval=$enable_arts;
  19307. else $as_nop
  19308. enable_arts=yes
  19309. fi
  19310. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  19311. # Extract the first word of "artsc-config", so it can be a program name with args.
  19312. set dummy artsc-config; ac_word=$2
  19313. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19314. printf %s "checking for $ac_word... " >&6; }
  19315. if test ${ac_cv_path_ARTSCONFIG+y}
  19316. then :
  19317. printf %s "(cached) " >&6
  19318. else $as_nop
  19319. case $ARTSCONFIG in
  19320. [\\/]* | ?:[\\/]*)
  19321. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  19322. ;;
  19323. *)
  19324. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19325. for as_dir in $PATH
  19326. do
  19327. IFS=$as_save_IFS
  19328. case $as_dir in #(((
  19329. '') as_dir=./ ;;
  19330. */) ;;
  19331. *) as_dir=$as_dir/ ;;
  19332. esac
  19333. for ac_exec_ext in '' $ac_executable_extensions; do
  19334. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  19335. ac_cv_path_ARTSCONFIG="$as_dir$ac_word$ac_exec_ext"
  19336. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  19337. break 2
  19338. fi
  19339. done
  19340. done
  19341. IFS=$as_save_IFS
  19342. ;;
  19343. esac
  19344. fi
  19345. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  19346. if test -n "$ARTSCONFIG"; then
  19347. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  19348. printf "%s\n" "$ARTSCONFIG" >&6; }
  19349. else
  19350. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19351. printf "%s\n" "no" >&6; }
  19352. fi
  19353. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  19354. : # arts isn't installed
  19355. else
  19356. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  19357. ARTS_LIBS=`$ARTSCONFIG --libs`
  19358. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  19359. printf %s "checking for aRts development environment... " >&6; }
  19360. audio_arts=no
  19361. save_CFLAGS="$CFLAGS"
  19362. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  19363. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19364. /* end confdefs.h. */
  19365. #include <artsc.h>
  19366. int
  19367. main (void)
  19368. {
  19369. arts_stream_t stream;
  19370. ;
  19371. return 0;
  19372. }
  19373. _ACEOF
  19374. if ac_fn_c_try_compile "$LINENO"
  19375. then :
  19376. audio_arts=yes
  19377. fi
  19378. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19379. CFLAGS="$save_CFLAGS"
  19380. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  19381. printf "%s\n" "$audio_arts" >&6; }
  19382. if test x$audio_arts = xyes; then
  19383. # Check whether --enable-arts-shared was given.
  19384. if test ${enable_arts_shared+y}
  19385. then :
  19386. enableval=$enable_arts_shared;
  19387. else $as_nop
  19388. enable_arts_shared=yes
  19389. fi
  19390. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19391. printf "%s\n" "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  19392. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  19393. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  19394. if test x$have_loadso != xyes && \
  19395. test x$enable_arts_shared = xyes; then
  19396. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  19397. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  19398. fi
  19399. if test x$have_loadso = xyes && \
  19400. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  19401. echo "-- dynamic libartsc -> $arts_lib"
  19402. printf "%s\n" "#define SDL_AUDIO_DRIVER_ARTS_DYNAMIC \"$arts_lib\"" >>confdefs.h
  19403. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  19404. else
  19405. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  19406. SUMMARY_audio="${SUMMARY_audio} arts"
  19407. fi
  19408. have_audio=yes
  19409. fi
  19410. fi
  19411. fi
  19412. }
  19413. CheckNAS()
  19414. {
  19415. # Check whether --enable-nas was given.
  19416. if test ${enable_nas+y}
  19417. then :
  19418. enableval=$enable_nas;
  19419. else $as_nop
  19420. enable_nas=yes
  19421. fi
  19422. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  19423. ac_fn_c_check_header_compile "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  19424. if test "x$ac_cv_header_audio_audiolib_h" = xyes
  19425. then :
  19426. have_nas_hdr=yes
  19427. fi
  19428. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  19429. printf %s "checking for AuOpenServer in -laudio... " >&6; }
  19430. if test ${ac_cv_lib_audio_AuOpenServer+y}
  19431. then :
  19432. printf %s "(cached) " >&6
  19433. else $as_nop
  19434. ac_check_lib_save_LIBS=$LIBS
  19435. LIBS="-laudio $LIBS"
  19436. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19437. /* end confdefs.h. */
  19438. /* Override any GCC internal prototype to avoid an error.
  19439. Use char because int might match the return type of a GCC
  19440. builtin and then its argument prototype would still apply. */
  19441. char AuOpenServer ();
  19442. int
  19443. main (void)
  19444. {
  19445. return AuOpenServer ();
  19446. ;
  19447. return 0;
  19448. }
  19449. _ACEOF
  19450. if ac_fn_c_try_link "$LINENO"
  19451. then :
  19452. ac_cv_lib_audio_AuOpenServer=yes
  19453. else $as_nop
  19454. ac_cv_lib_audio_AuOpenServer=no
  19455. fi
  19456. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19457. conftest$ac_exeext conftest.$ac_ext
  19458. LIBS=$ac_check_lib_save_LIBS
  19459. fi
  19460. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  19461. printf "%s\n" "$ac_cv_lib_audio_AuOpenServer" >&6; }
  19462. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes
  19463. then :
  19464. have_nas_lib=yes
  19465. fi
  19466. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  19467. printf %s "checking for NAS audio support... " >&6; }
  19468. have_nas=no
  19469. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  19470. have_nas=yes
  19471. NAS_LIBS="-laudio"
  19472. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  19473. have_nas=yes
  19474. NAS_CFLAGS="-I/usr/X11R6/include/"
  19475. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  19476. fi
  19477. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  19478. printf "%s\n" "$have_nas" >&6; }
  19479. if test x$have_nas = xyes; then
  19480. # Check whether --enable-nas-shared was given.
  19481. if test ${enable_nas_shared+y}
  19482. then :
  19483. enableval=$enable_nas_shared;
  19484. else $as_nop
  19485. enable_nas_shared=yes
  19486. fi
  19487. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19488. if test x$have_loadso != xyes && \
  19489. test x$enable_nas_shared = xyes; then
  19490. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  19491. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  19492. fi
  19493. if test x$have_loadso = xyes && \
  19494. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  19495. echo "-- dynamic libaudio -> $nas_lib"
  19496. printf "%s\n" "#define SDL_AUDIO_DRIVER_NAS_DYNAMIC \"$nas_lib\"" >>confdefs.h
  19497. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  19498. else
  19499. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  19500. SUMMARY_audio="${SUMMARY_audio} nas"
  19501. fi
  19502. printf "%s\n" "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  19503. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  19504. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  19505. have_audio=yes
  19506. fi
  19507. fi
  19508. }
  19509. CheckSNDIO()
  19510. {
  19511. # Check whether --enable-sndio was given.
  19512. if test ${enable_sndio+y}
  19513. then :
  19514. enableval=$enable_sndio;
  19515. else $as_nop
  19516. enable_sndio=yes
  19517. fi
  19518. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  19519. pkg_failed=no
  19520. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sndio" >&5
  19521. printf %s "checking for sndio... " >&6; }
  19522. if test -n "$SNDIO_CFLAGS"; then
  19523. pkg_cv_SNDIO_CFLAGS="$SNDIO_CFLAGS"
  19524. elif test -n "$PKG_CONFIG"; then
  19525. if test -n "$PKG_CONFIG" && \
  19526. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndio\""; } >&5
  19527. ($PKG_CONFIG --exists --print-errors "sndio") 2>&5
  19528. ac_status=$?
  19529. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19530. test $ac_status = 0; }; then
  19531. pkg_cv_SNDIO_CFLAGS=`$PKG_CONFIG --cflags "sndio" 2>/dev/null`
  19532. test "x$?" != "x0" && pkg_failed=yes
  19533. else
  19534. pkg_failed=yes
  19535. fi
  19536. else
  19537. pkg_failed=untried
  19538. fi
  19539. if test -n "$SNDIO_LIBS"; then
  19540. pkg_cv_SNDIO_LIBS="$SNDIO_LIBS"
  19541. elif test -n "$PKG_CONFIG"; then
  19542. if test -n "$PKG_CONFIG" && \
  19543. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndio\""; } >&5
  19544. ($PKG_CONFIG --exists --print-errors "sndio") 2>&5
  19545. ac_status=$?
  19546. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19547. test $ac_status = 0; }; then
  19548. pkg_cv_SNDIO_LIBS=`$PKG_CONFIG --libs "sndio" 2>/dev/null`
  19549. test "x$?" != "x0" && pkg_failed=yes
  19550. else
  19551. pkg_failed=yes
  19552. fi
  19553. else
  19554. pkg_failed=untried
  19555. fi
  19556. if test $pkg_failed = yes; then
  19557. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19558. printf "%s\n" "no" >&6; }
  19559. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19560. _pkg_short_errors_supported=yes
  19561. else
  19562. _pkg_short_errors_supported=no
  19563. fi
  19564. if test $_pkg_short_errors_supported = yes; then
  19565. SNDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sndio" 2>&1`
  19566. else
  19567. SNDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sndio" 2>&1`
  19568. fi
  19569. # Put the nasty error message in config.log where it belongs
  19570. echo "$SNDIO_PKG_ERRORS" >&5
  19571. audio_sndio=no
  19572. elif test $pkg_failed = untried; then
  19573. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19574. printf "%s\n" "no" >&6; }
  19575. audio_sndio=no
  19576. else
  19577. SNDIO_CFLAGS=$pkg_cv_SNDIO_CFLAGS
  19578. SNDIO_LIBS=$pkg_cv_SNDIO_LIBS
  19579. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19580. printf "%s\n" "yes" >&6; }
  19581. audio_sndio=yes
  19582. fi
  19583. if test x$audio_sndio = xyes; then
  19584. # Check whether --enable-sndio-shared was given.
  19585. if test ${enable_sndio_shared+y}
  19586. then :
  19587. enableval=$enable_sndio_shared;
  19588. else $as_nop
  19589. enable_sndio_shared=yes
  19590. fi
  19591. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19592. if test x$have_loadso != xyes && \
  19593. test x$enable_sndio_shared = xyes; then
  19594. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  19595. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  19596. fi
  19597. if test x$have_loadso = xyes && \
  19598. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  19599. echo "-- dynamic libsndio -> $sndio_lib"
  19600. printf "%s\n" "#define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC \"$sndio_lib\"" >>confdefs.h
  19601. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  19602. else
  19603. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  19604. SUMMARY_audio="${SUMMARY_audio} sndio"
  19605. fi
  19606. printf "%s\n" "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  19607. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  19608. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  19609. have_audio=yes
  19610. fi
  19611. fi
  19612. }
  19613. CheckFusionSound()
  19614. {
  19615. # Check whether --enable-fusionsound was given.
  19616. if test ${enable_fusionsound+y}
  19617. then :
  19618. enableval=$enable_fusionsound;
  19619. else $as_nop
  19620. enable_fusionsound=no
  19621. fi
  19622. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  19623. pkg_failed=no
  19624. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fusionsound >= 1.1.1" >&5
  19625. printf %s "checking for fusionsound >= 1.1.1... " >&6; }
  19626. if test -n "$FUSIONSOUND_CFLAGS"; then
  19627. pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
  19628. elif test -n "$PKG_CONFIG"; then
  19629. if test -n "$PKG_CONFIG" && \
  19630. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  19631. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  19632. ac_status=$?
  19633. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19634. test $ac_status = 0; }; then
  19635. pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
  19636. test "x$?" != "x0" && pkg_failed=yes
  19637. else
  19638. pkg_failed=yes
  19639. fi
  19640. else
  19641. pkg_failed=untried
  19642. fi
  19643. if test -n "$FUSIONSOUND_LIBS"; then
  19644. pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
  19645. elif test -n "$PKG_CONFIG"; then
  19646. if test -n "$PKG_CONFIG" && \
  19647. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  19648. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  19649. ac_status=$?
  19650. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19651. test $ac_status = 0; }; then
  19652. pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
  19653. test "x$?" != "x0" && pkg_failed=yes
  19654. else
  19655. pkg_failed=yes
  19656. fi
  19657. else
  19658. pkg_failed=untried
  19659. fi
  19660. if test $pkg_failed = yes; then
  19661. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19662. printf "%s\n" "no" >&6; }
  19663. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19664. _pkg_short_errors_supported=yes
  19665. else
  19666. _pkg_short_errors_supported=no
  19667. fi
  19668. if test $_pkg_short_errors_supported = yes; then
  19669. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  19670. else
  19671. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  19672. fi
  19673. # Put the nasty error message in config.log where it belongs
  19674. echo "$FUSIONSOUND_PKG_ERRORS" >&5
  19675. fusionsound=no
  19676. elif test $pkg_failed = untried; then
  19677. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19678. printf "%s\n" "no" >&6; }
  19679. fusionsound=no
  19680. else
  19681. FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
  19682. FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
  19683. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19684. printf "%s\n" "yes" >&6; }
  19685. fusionsound=yes
  19686. fi
  19687. if test x$fusionsound = xyes; then
  19688. printf "%s\n" "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  19689. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  19690. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  19691. # Check whether --enable-fusionsound-shared was given.
  19692. if test ${enable_fusionsound_shared+y}
  19693. then :
  19694. enableval=$enable_fusionsound_shared;
  19695. else $as_nop
  19696. enable_fusionsound_shared=yes
  19697. fi
  19698. fusionsound_shared=no
  19699. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  19700. printf %s "checking for FusionSound dynamic loading support... " >&6; }
  19701. if test x$have_loadso != xyes && \
  19702. test x$enable_fusionsound_shared = xyes; then
  19703. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  19704. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  19705. fi
  19706. if test x$have_loadso = xyes && \
  19707. test x$enable_fusionsound_shared = xyes; then
  19708. printf "%s\n" "#define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC \"libfusionsound.so\"" >>confdefs.h
  19709. fusionsound_shared=yes
  19710. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  19711. else
  19712. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  19713. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  19714. fi
  19715. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  19716. printf "%s\n" "$fusionsound_shared" >&6; }
  19717. have_audio=yes
  19718. fi
  19719. fi
  19720. }
  19721. CheckDiskAudio()
  19722. {
  19723. # Check whether --enable-diskaudio was given.
  19724. if test ${enable_diskaudio+y}
  19725. then :
  19726. enableval=$enable_diskaudio;
  19727. else $as_nop
  19728. enable_diskaudio=yes
  19729. fi
  19730. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  19731. printf "%s\n" "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  19732. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  19733. SUMMARY_audio="${SUMMARY_audio} disk"
  19734. have_audio=yes
  19735. fi
  19736. }
  19737. CheckDummyAudio()
  19738. {
  19739. # Check whether --enable-dummyaudio was given.
  19740. if test ${enable_dummyaudio+y}
  19741. then :
  19742. enableval=$enable_dummyaudio;
  19743. else $as_nop
  19744. enable_dummyaudio=yes
  19745. fi
  19746. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  19747. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  19748. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  19749. SUMMARY_audio="${SUMMARY_audio} dummy"
  19750. have_audio=yes
  19751. fi
  19752. }
  19753. CheckLibSampleRate()
  19754. {
  19755. # Check whether --enable-libsamplerate was given.
  19756. if test ${enable_libsamplerate+y}
  19757. then :
  19758. enableval=$enable_libsamplerate;
  19759. else $as_nop
  19760. enable_libsamplerate=yes
  19761. fi
  19762. if test x$enable_libsamplerate = xyes; then
  19763. ac_fn_c_check_header_compile "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  19764. if test "x$ac_cv_header_samplerate_h" = xyes
  19765. then :
  19766. have_samplerate_h_hdr=yes
  19767. else $as_nop
  19768. have_samplerate_h_hdr=no
  19769. fi
  19770. if test x$have_samplerate_h_hdr = xyes; then
  19771. printf "%s\n" "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  19772. # Check whether --enable-libsamplerate-shared was given.
  19773. if test ${enable_libsamplerate_shared+y}
  19774. then :
  19775. enableval=$enable_libsamplerate_shared;
  19776. else $as_nop
  19777. enable_libsamplerate_shared=yes
  19778. fi
  19779. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  19780. if test x$have_loadso != xyes && \
  19781. test x$enable_libsamplerate_shared = xyes; then
  19782. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  19783. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  19784. fi
  19785. if test x$have_loadso = xyes && \
  19786. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  19787. echo "-- dynamic libsamplerate -> $samplerate_lib"
  19788. printf "%s\n" "#define SDL_LIBSAMPLERATE_DYNAMIC \"$samplerate_lib\"" >>confdefs.h
  19789. else
  19790. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  19791. fi
  19792. fi
  19793. fi
  19794. }
  19795. CheckARM()
  19796. {
  19797. # Check whether --enable-arm-simd was given.
  19798. if test ${enable_arm_simd+y}
  19799. then :
  19800. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  19801. else $as_nop
  19802. enable_arm_simd=no
  19803. fi
  19804. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  19805. save_CFLAGS="$CFLAGS"
  19806. have_arm_simd=no
  19807. CFLAGS="-x assembler-with-cpp $CFLAGS"
  19808. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  19809. printf %s "checking for ARM SIMD... " >&6; }
  19810. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19811. /* end confdefs.h. */
  19812. .text
  19813. .arch armv6
  19814. .object_arch armv4
  19815. .arm
  19816. .altmacro
  19817. #ifndef __ARM_EABI__
  19818. #error EABI is required (to be sure that calling conventions are compatible)
  19819. #endif
  19820. pld [r0]
  19821. uqadd8 r0, r0, r0
  19822. _ACEOF
  19823. if ac_fn_c_try_compile "$LINENO"
  19824. then :
  19825. have_arm_simd=yes
  19826. fi
  19827. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19828. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  19829. printf "%s\n" "$have_arm_simd" >&6; }
  19830. CFLAGS="$save_CFLAGS"
  19831. if test x$have_arm_simd = xyes; then
  19832. printf "%s\n" "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  19833. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  19834. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  19835. fi
  19836. fi
  19837. }
  19838. CheckNEON()
  19839. {
  19840. # Check whether --enable-arm-neon was given.
  19841. if test ${enable_arm_neon+y}
  19842. then :
  19843. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  19844. else $as_nop
  19845. enable_arm_neon=no
  19846. fi
  19847. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  19848. save_CFLAGS="$CFLAGS"
  19849. have_arm_neon=no
  19850. CFLAGS="-x assembler-with-cpp $CFLAGS"
  19851. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  19852. printf %s "checking for ARM NEON... " >&6; }
  19853. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19854. /* end confdefs.h. */
  19855. .text
  19856. .fpu neon
  19857. .arch armv7a
  19858. .object_arch armv4
  19859. .eabi_attribute 10, 0
  19860. .arm
  19861. .altmacro
  19862. #ifndef __ARM_EABI__
  19863. #error EABI is required (to be sure that calling conventions are compatible)
  19864. #endif
  19865. pld [r0]
  19866. vmovn.u16 d0, q0
  19867. _ACEOF
  19868. if ac_fn_c_try_compile "$LINENO"
  19869. then :
  19870. have_arm_neon=yes
  19871. fi
  19872. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19873. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  19874. printf "%s\n" "$have_arm_neon" >&6; }
  19875. CFLAGS="$save_CFLAGS"
  19876. if test x$have_arm_neon = xyes; then
  19877. printf "%s\n" "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  19878. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  19879. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  19880. fi
  19881. fi
  19882. }
  19883. CheckObjectiveCARC()
  19884. {
  19885. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clang -fobjc-arc option" >&5
  19886. printf %s "checking for clang -fobjc-arc option... " >&6; }
  19887. have_clang_objc_arc=no
  19888. save_CFLAGS="$CFLAGS"
  19889. CFLAGS="$save_CFLAGS -fobjc-arc"
  19890. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19891. /* end confdefs.h. */
  19892. int x = 0;
  19893. int
  19894. main (void)
  19895. {
  19896. ;
  19897. return 0;
  19898. }
  19899. _ACEOF
  19900. if ac_fn_c_try_compile "$LINENO"
  19901. then :
  19902. have_clang_objc_arc=yes
  19903. fi
  19904. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19905. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_clang_objc_arc" >&5
  19906. printf "%s\n" "$have_clang_objc_arc" >&6; }
  19907. CFLAGS="$save_CFLAGS"
  19908. if test x$have_clang_objc_arc = xyes; then
  19909. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-arc"
  19910. fi
  19911. }
  19912. CheckGDwarf4()
  19913. {
  19914. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -gdwarf-4 option" >&5
  19915. printf %s "checking for GCC -gdwarf-4 option... " >&6; }
  19916. have_gcc_gdwarf4=no
  19917. save_CFLAGS="$CFLAGS"
  19918. CFLAGS="$save_CFLAGS -gdwarf-4"
  19919. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19920. /* end confdefs.h. */
  19921. int x = 0;
  19922. int
  19923. main (void)
  19924. {
  19925. ;
  19926. return 0;
  19927. }
  19928. _ACEOF
  19929. if ac_fn_c_try_compile "$LINENO"
  19930. then :
  19931. have_gcc_gdwarf4=yes
  19932. fi
  19933. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19934. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_gdwarf4" >&5
  19935. printf "%s\n" "$have_gcc_gdwarf4" >&6; }
  19936. CFLAGS="$save_CFLAGS"
  19937. if test x$have_gcc_gdwarf4 = xyes; then
  19938. EXTRA_CFLAGS="$EXTRA_CFLAGS -gdwarf-4"
  19939. fi
  19940. }
  19941. CheckVisibilityHidden()
  19942. {
  19943. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  19944. printf %s "checking for GCC -fvisibility=hidden option... " >&6; }
  19945. have_gcc_fvisibility=no
  19946. visibility_CFLAGS="-fvisibility=hidden"
  19947. save_CFLAGS="$CFLAGS"
  19948. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  19949. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19950. /* end confdefs.h. */
  19951. #if !defined(__GNUC__) || __GNUC__ < 4
  19952. #error SDL only uses visibility attributes in GCC 4 or newer
  19953. #endif
  19954. int
  19955. main (void)
  19956. {
  19957. ;
  19958. return 0;
  19959. }
  19960. _ACEOF
  19961. if ac_fn_c_try_compile "$LINENO"
  19962. then :
  19963. have_gcc_fvisibility=yes
  19964. fi
  19965. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19966. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  19967. printf "%s\n" "$have_gcc_fvisibility" >&6; }
  19968. CFLAGS="$save_CFLAGS"
  19969. if test x$have_gcc_fvisibility = xyes; then
  19970. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  19971. fi
  19972. }
  19973. CheckNoStrictAliasing()
  19974. {
  19975. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  19976. printf %s "checking for GCC -fno-strict-aliasing option... " >&6; }
  19977. have_gcc_no_strict_aliasing=no
  19978. save_CFLAGS="$CFLAGS"
  19979. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  19980. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19981. /* end confdefs.h. */
  19982. int x = 0;
  19983. int
  19984. main (void)
  19985. {
  19986. ;
  19987. return 0;
  19988. }
  19989. _ACEOF
  19990. if ac_fn_c_try_compile "$LINENO"
  19991. then :
  19992. have_gcc_no_strict_aliasing=yes
  19993. fi
  19994. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19995. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  19996. printf "%s\n" "$have_gcc_no_strict_aliasing" >&6; }
  19997. CFLAGS="$save_CFLAGS"
  19998. if test x$have_gcc_no_strict_aliasing = xyes; then
  19999. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  20000. fi
  20001. }
  20002. CheckWerror()
  20003. {
  20004. # Check whether --enable-werror was given.
  20005. if test ${enable_werror+y}
  20006. then :
  20007. enableval=$enable_werror; enable_werror=$enableval
  20008. else $as_nop
  20009. enable_werror=no
  20010. fi
  20011. if test x$enable_werror = xyes; then
  20012. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Werror option" >&5
  20013. printf %s "checking for GCC -Werror option... " >&6; }
  20014. have_gcc_werror=no
  20015. save_CFLAGS="$CFLAGS"
  20016. CFLAGS="$save_CFLAGS -Werror"
  20017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20018. /* end confdefs.h. */
  20019. int x = 0;
  20020. int
  20021. main (void)
  20022. {
  20023. ;
  20024. return 0;
  20025. }
  20026. _ACEOF
  20027. if ac_fn_c_try_compile "$LINENO"
  20028. then :
  20029. have_gcc_werror=yes
  20030. fi
  20031. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20032. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_werror" >&5
  20033. printf "%s\n" "$have_gcc_werror" >&6; }
  20034. CFLAGS="$save_CFLAGS"
  20035. if test x$have_gcc_werror = xyes; then
  20036. EXTRA_CFLAGS="$EXTRA_CFLAGS -Werror"
  20037. fi
  20038. fi
  20039. }
  20040. CheckNoErrorDeprecatedDeclarationsWerror()
  20041. {
  20042. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wno-error=deprecated-declarations option" >&5
  20043. printf %s "checking for GCC -Wno-error=deprecated-declarations option... " >&6; }
  20044. have_gcc_no_werror_deprecated_declarations=no
  20045. save_CFLAGS="$CFLAGS"
  20046. CFLAGS="$save_CFLAGS -Wno-error=deprecated-declarations"
  20047. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20048. /* end confdefs.h. */
  20049. int x = 0;
  20050. int
  20051. main (void)
  20052. {
  20053. ;
  20054. return 0;
  20055. }
  20056. _ACEOF
  20057. if ac_fn_c_try_compile "$LINENO"
  20058. then :
  20059. have_gcc_no_werror_deprecated_declarations=yes
  20060. fi
  20061. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20062. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_werror" >&5
  20063. printf "%s\n" "$have_gcc_werror" >&6; }
  20064. CFLAGS="$save_CFLAGS"
  20065. if test x$have_gcc_no_werror_deprecated_declarations = xyes; then
  20066. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-error=deprecated-declarations"
  20067. fi
  20068. }
  20069. CheckDeclarationAfterStatement()
  20070. {
  20071. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  20072. printf %s "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  20073. have_gcc_declaration_after_statement=no
  20074. save_CFLAGS="$CFLAGS"
  20075. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  20076. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20077. /* end confdefs.h. */
  20078. int x = 0;
  20079. int
  20080. main (void)
  20081. {
  20082. ;
  20083. return 0;
  20084. }
  20085. _ACEOF
  20086. if ac_fn_c_try_compile "$LINENO"
  20087. then :
  20088. have_gcc_declaration_after_statement=yes
  20089. fi
  20090. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20091. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  20092. printf "%s\n" "$have_gcc_declaration_after_statement" >&6; }
  20093. CFLAGS="$save_CFLAGS"
  20094. if test x$have_gcc_declaration_after_statement = xyes; then
  20095. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  20096. fi
  20097. }
  20098. CheckWarnAll()
  20099. {
  20100. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  20101. printf %s "checking for GCC -Wall option... " >&6; }
  20102. have_gcc_Wall=no
  20103. save_CFLAGS="$CFLAGS"
  20104. CFLAGS="$save_CFLAGS -Wall"
  20105. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20106. /* end confdefs.h. */
  20107. int x = 0;
  20108. int
  20109. main (void)
  20110. {
  20111. ;
  20112. return 0;
  20113. }
  20114. _ACEOF
  20115. if ac_fn_c_try_compile "$LINENO"
  20116. then :
  20117. have_gcc_Wall=yes
  20118. fi
  20119. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20120. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  20121. printf "%s\n" "$have_gcc_Wall" >&6; }
  20122. CFLAGS="$save_CFLAGS"
  20123. if test x$have_gcc_Wall = xyes; then
  20124. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  20125. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  20126. printf %s "checking for necessary GCC -Wno-multichar option... " >&6; }
  20127. need_gcc_Wno_multichar=no
  20128. case "$host" in
  20129. *-*-haiku*)
  20130. need_gcc_Wno_multichar=yes
  20131. ;;
  20132. esac
  20133. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  20134. printf "%s\n" "$need_gcc_Wno_multichar" >&6; }
  20135. if test x$need_gcc_Wno_multichar = xyes; then
  20136. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  20137. fi
  20138. fi
  20139. }
  20140. CheckUnusedLocalTypedefs()
  20141. {
  20142. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wunused-local-typedefs option" >&5
  20143. printf %s "checking for GCC -Wunused-local-typedefs option... " >&6; }
  20144. have_gcc_unused_local_typedefs=no
  20145. save_CFLAGS="$CFLAGS"
  20146. CFLAGS="$save_CFLAGS -Wunused-local-typedefs"
  20147. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20148. /* end confdefs.h. */
  20149. int x = 0;
  20150. int
  20151. main (void)
  20152. {
  20153. ;
  20154. return 0;
  20155. }
  20156. _ACEOF
  20157. if ac_fn_c_try_compile "$LINENO"
  20158. then :
  20159. have_gcc_unused_local_typedefs=yes
  20160. fi
  20161. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20162. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_unused_local_typedefs" >&5
  20163. printf "%s\n" "$have_gcc_unused_local_typedefs" >&6; }
  20164. CFLAGS="$save_CFLAGS"
  20165. if test x$have_gcc_unused_local_typedefs = xyes; then
  20166. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-unused-local-typedefs"
  20167. fi
  20168. }
  20169. CheckWayland()
  20170. {
  20171. # Check whether --enable-video-wayland was given.
  20172. if test ${enable_video_wayland+y}
  20173. then :
  20174. enableval=$enable_video_wayland;
  20175. else $as_nop
  20176. enable_video_wayland=yes
  20177. fi
  20178. # Check whether --enable-video-wayland-qt-touch was given.
  20179. if test ${enable_video_wayland_qt_touch+y}
  20180. then :
  20181. enableval=$enable_video_wayland_qt_touch;
  20182. else $as_nop
  20183. enable_video_wayland_qt_touch=yes
  20184. fi
  20185. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  20186. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  20187. printf %s "checking for Wayland support... " >&6; }
  20188. video_wayland=no
  20189. if test x$video_opengl_egl = xyes && \
  20190. test x$video_opengles_v2 = xyes; then
  20191. if $PKG_CONFIG --exists 'wayland-client >= 1.18' wayland-scanner wayland-egl wayland-cursor egl 'xkbcommon >= 0.5.0'; then
  20192. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  20193. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  20194. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  20195. if $PKG_CONFIG --exists 'wayland-scanner >= 1.15'
  20196. then :
  20197. WAYLAND_SCANNER_CODE_MODE=private-code
  20198. else $as_nop
  20199. WAYLAND_SCANNER_CODE_MODE=code
  20200. fi
  20201. video_wayland=yes
  20202. fi
  20203. fi
  20204. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  20205. printf "%s\n" "$video_wayland" >&6; }
  20206. if test x$video_wayland = xyes; then
  20207. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  20208. if test x$enable_video_wayland_qt_touch = xyes; then
  20209. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  20210. fi
  20211. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  20212. SOURCES="$SOURCES $WAYLAND_SOURCES"
  20213. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  20214. # Check whether --enable-wayland-shared was given.
  20215. if test ${enable_wayland_shared+y}
  20216. then :
  20217. enableval=$enable_wayland_shared;
  20218. else $as_nop
  20219. enable_wayland_shared=maybe
  20220. fi
  20221. case "$host" in
  20222. *)
  20223. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20224. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20225. if test x$wayland_egl_lib = x; then
  20226. # This works in Ubuntu 13.10, maybe others
  20227. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20228. fi
  20229. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20230. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20231. ;;
  20232. esac
  20233. if test x$enable_wayland_shared = xmaybe; then
  20234. enable_wayland_shared=yes
  20235. fi
  20236. if test x$have_loadso != xyes && \
  20237. test x$enable_wayland_shared = xyes; then
  20238. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  20239. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  20240. enable_wayland_shared=no
  20241. fi
  20242. if test x$have_loadso = xyes && \
  20243. test x$enable_wayland_shared = xyes && \
  20244. test x$wayland_client_lib != x && \
  20245. test x$wayland_egl_lib != x && \
  20246. test x$wayland_cursor_lib != x && \
  20247. test x$xkbcommon_lib != x; then
  20248. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  20249. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  20250. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  20251. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  20252. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC \"$wayland_client_lib\"" >>confdefs.h
  20253. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL \"$wayland_egl_lib\"" >>confdefs.h
  20254. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR \"$wayland_cursor_lib\"" >>confdefs.h
  20255. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON \"$xkbcommon_lib\"" >>confdefs.h
  20256. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  20257. else
  20258. enable_wayland_shared=no
  20259. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  20260. SUMMARY_video="${SUMMARY_video} wayland"
  20261. fi
  20262. have_video=yes
  20263. # Check whether --enable-libdecor was given.
  20264. if test ${enable_libdecor+y}
  20265. then :
  20266. enableval=$enable_libdecor;
  20267. else $as_nop
  20268. enable_libdecor=yes
  20269. fi
  20270. if test x$enable_libdecor = xyes; then
  20271. pkg_failed=no
  20272. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdecor-0" >&5
  20273. printf %s "checking for libdecor-0... " >&6; }
  20274. if test -n "$DECOR_CFLAGS"; then
  20275. pkg_cv_DECOR_CFLAGS="$DECOR_CFLAGS"
  20276. elif test -n "$PKG_CONFIG"; then
  20277. if test -n "$PKG_CONFIG" && \
  20278. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  20279. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  20280. ac_status=$?
  20281. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20282. test $ac_status = 0; }; then
  20283. pkg_cv_DECOR_CFLAGS=`$PKG_CONFIG --cflags "libdecor-0" 2>/dev/null`
  20284. test "x$?" != "x0" && pkg_failed=yes
  20285. else
  20286. pkg_failed=yes
  20287. fi
  20288. else
  20289. pkg_failed=untried
  20290. fi
  20291. if test -n "$DECOR_LIBS"; then
  20292. pkg_cv_DECOR_LIBS="$DECOR_LIBS"
  20293. elif test -n "$PKG_CONFIG"; then
  20294. if test -n "$PKG_CONFIG" && \
  20295. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  20296. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  20297. ac_status=$?
  20298. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20299. test $ac_status = 0; }; then
  20300. pkg_cv_DECOR_LIBS=`$PKG_CONFIG --libs "libdecor-0" 2>/dev/null`
  20301. test "x$?" != "x0" && pkg_failed=yes
  20302. else
  20303. pkg_failed=yes
  20304. fi
  20305. else
  20306. pkg_failed=untried
  20307. fi
  20308. if test $pkg_failed = yes; then
  20309. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20310. printf "%s\n" "no" >&6; }
  20311. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20312. _pkg_short_errors_supported=yes
  20313. else
  20314. _pkg_short_errors_supported=no
  20315. fi
  20316. if test $_pkg_short_errors_supported = yes; then
  20317. DECOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdecor-0" 2>&1`
  20318. else
  20319. DECOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdecor-0" 2>&1`
  20320. fi
  20321. # Put the nasty error message in config.log where it belongs
  20322. echo "$DECOR_PKG_ERRORS" >&5
  20323. video_libdecor=no
  20324. elif test $pkg_failed = untried; then
  20325. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20326. printf "%s\n" "no" >&6; }
  20327. video_libdecor=no
  20328. else
  20329. DECOR_CFLAGS=$pkg_cv_DECOR_CFLAGS
  20330. DECOR_LIBS=$pkg_cv_DECOR_LIBS
  20331. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20332. printf "%s\n" "yes" >&6; }
  20333. video_libdecor=yes
  20334. fi
  20335. if test x$video_libdecor = xyes; then
  20336. EXTRA_CFLAGS="$EXTRA_CFLAGS $DECOR_CFLAGS"
  20337. printf "%s\n" "#define HAVE_LIBDECOR_H 1" >>confdefs.h
  20338. # Check whether --enable-libdecor-shared was given.
  20339. if test ${enable_libdecor_shared+y}
  20340. then :
  20341. enableval=$enable_libdecor_shared;
  20342. else $as_nop
  20343. enable_libdecor_shared=yes
  20344. fi
  20345. decor_lib=`find_lib "libdecor-0.so.*" "$DECOR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20346. if test x$enable_wayland_shared != xyes; then
  20347. enable_libdecor_shared=no
  20348. fi
  20349. if test x$have_loadso != xyes && \
  20350. test x$enable_libdecor_shared = xyes; then
  20351. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&5
  20352. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&2;}
  20353. fi
  20354. if test x$have_loadso = xyes && \
  20355. test x$enable_libdecor_shared = xyes && test x$decor_lib != x; then
  20356. echo "-- dynamic libdecor -> $decor_lib"
  20357. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_LIBDECOR \"$decor_lib\"" >>confdefs.h
  20358. else
  20359. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DECOR_LIBS"
  20360. fi
  20361. saved_cflags=$CFLAGS
  20362. CFLAGS="$CFLAGS $DECOR_CFLAGS"
  20363. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
  20364. printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
  20365. if test ${ac_cv_c_undeclared_builtin_options+y}
  20366. then :
  20367. printf %s "(cached) " >&6
  20368. else $as_nop
  20369. ac_save_CFLAGS=$CFLAGS
  20370. ac_cv_c_undeclared_builtin_options='cannot detect'
  20371. for ac_arg in '' -fno-builtin; do
  20372. CFLAGS="$ac_save_CFLAGS $ac_arg"
  20373. # This test program should *not* compile successfully.
  20374. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20375. /* end confdefs.h. */
  20376. int
  20377. main (void)
  20378. {
  20379. (void) strchr;
  20380. ;
  20381. return 0;
  20382. }
  20383. _ACEOF
  20384. if ac_fn_c_try_compile "$LINENO"
  20385. then :
  20386. else $as_nop
  20387. # This test program should compile successfully.
  20388. # No library function is consistently available on
  20389. # freestanding implementations, so test against a dummy
  20390. # declaration. Include always-available headers on the
  20391. # off chance that they somehow elicit warnings.
  20392. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20393. /* end confdefs.h. */
  20394. #include <float.h>
  20395. #include <limits.h>
  20396. #include <stdarg.h>
  20397. #include <stddef.h>
  20398. extern void ac_decl (int, char *);
  20399. int
  20400. main (void)
  20401. {
  20402. (void) ac_decl (0, (char *) 0);
  20403. (void) ac_decl;
  20404. ;
  20405. return 0;
  20406. }
  20407. _ACEOF
  20408. if ac_fn_c_try_compile "$LINENO"
  20409. then :
  20410. if test x"$ac_arg" = x
  20411. then :
  20412. ac_cv_c_undeclared_builtin_options='none needed'
  20413. else $as_nop
  20414. ac_cv_c_undeclared_builtin_options=$ac_arg
  20415. fi
  20416. break
  20417. fi
  20418. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20419. fi
  20420. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20421. done
  20422. CFLAGS=$ac_save_CFLAGS
  20423. fi
  20424. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
  20425. printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
  20426. case $ac_cv_c_undeclared_builtin_options in #(
  20427. 'cannot detect') :
  20428. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  20429. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  20430. as_fn_error $? "cannot make $CC report undeclared builtins
  20431. See \`config.log' for more details" "$LINENO" 5; } ;; #(
  20432. 'none needed') :
  20433. ac_c_undeclared_builtin_options='' ;; #(
  20434. *) :
  20435. ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
  20436. esac
  20437. ac_fn_check_decl "$LINENO" "libdecor_frame_get_min_content_size" "ac_cv_have_decl_libdecor_frame_get_min_content_size" "#include <libdecor.h>
  20438. " "$ac_c_undeclared_builtin_options" "CFLAGS"
  20439. if test "x$ac_cv_have_decl_libdecor_frame_get_min_content_size" = xyes
  20440. then :
  20441. ac_have_decl=1
  20442. else $as_nop
  20443. ac_have_decl=0
  20444. fi
  20445. printf "%s\n" "#define HAVE_DECL_LIBDECOR_FRAME_GET_MIN_CONTENT_SIZE $ac_have_decl" >>confdefs.h
  20446. if test $ac_have_decl = 1
  20447. then :
  20448. libdecor_get_min_max=yes
  20449. fi
  20450. ac_fn_check_decl "$LINENO" "libdecor_frame_get_max_content_size" "ac_cv_have_decl_libdecor_frame_get_max_content_size" "#include <libdecor.h>
  20451. " "$ac_c_undeclared_builtin_options" "CFLAGS"
  20452. if test "x$ac_cv_have_decl_libdecor_frame_get_max_content_size" = xyes
  20453. then :
  20454. ac_have_decl=1
  20455. else $as_nop
  20456. ac_have_decl=0
  20457. fi
  20458. printf "%s\n" "#define HAVE_DECL_LIBDECOR_FRAME_GET_MAX_CONTENT_SIZE $ac_have_decl" >>confdefs.h
  20459. if test $ac_have_decl = 1
  20460. then :
  20461. libdecor_get_min_max=yes
  20462. fi
  20463. if test x$libdecor_get_min_max = xyes; then
  20464. printf "%s\n" "#define SDL_HAVE_LIBDECOR_GET_MIN_MAX 1" >>confdefs.h
  20465. fi
  20466. CFLAGS="$saved_cflags"
  20467. fi
  20468. fi
  20469. fi
  20470. fi
  20471. }
  20472. CheckNativeClient()
  20473. {
  20474. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20475. /* end confdefs.h. */
  20476. #if !defined(__native_client__)
  20477. #error "NO NACL"
  20478. #endif
  20479. int
  20480. main (void)
  20481. {
  20482. ;
  20483. return 0;
  20484. }
  20485. _ACEOF
  20486. if ac_fn_c_try_compile "$LINENO"
  20487. then :
  20488. printf "%s\n" "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  20489. printf "%s\n" "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  20490. printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
  20491. printf "%s\n" "#define HAVE_OPENGLES2 1" >>confdefs.h
  20492. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20493. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20494. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  20495. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  20496. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  20497. SUMMARY_audio="${SUMMARY_audio} nacl"
  20498. have_audio=yes
  20499. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  20500. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  20501. have_video=yes
  20502. fi
  20503. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20504. }
  20505. CheckRPI()
  20506. {
  20507. # Check whether --enable-video-rpi was given.
  20508. if test ${enable_video_rpi+y}
  20509. then :
  20510. enableval=$enable_video_rpi;
  20511. else $as_nop
  20512. enable_video_rpi=yes
  20513. fi
  20514. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  20515. pkg_failed=no
  20516. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bcm_host brcmegl" >&5
  20517. printf %s "checking for bcm_host brcmegl... " >&6; }
  20518. if test -n "$RPI_CFLAGS"; then
  20519. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  20520. elif test -n "$PKG_CONFIG"; then
  20521. if test -n "$PKG_CONFIG" && \
  20522. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  20523. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  20524. ac_status=$?
  20525. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20526. test $ac_status = 0; }; then
  20527. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
  20528. test "x$?" != "x0" && pkg_failed=yes
  20529. else
  20530. pkg_failed=yes
  20531. fi
  20532. else
  20533. pkg_failed=untried
  20534. fi
  20535. if test -n "$RPI_LIBS"; then
  20536. pkg_cv_RPI_LIBS="$RPI_LIBS"
  20537. elif test -n "$PKG_CONFIG"; then
  20538. if test -n "$PKG_CONFIG" && \
  20539. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  20540. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  20541. ac_status=$?
  20542. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20543. test $ac_status = 0; }; then
  20544. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
  20545. test "x$?" != "x0" && pkg_failed=yes
  20546. else
  20547. pkg_failed=yes
  20548. fi
  20549. else
  20550. pkg_failed=untried
  20551. fi
  20552. if test $pkg_failed = yes; then
  20553. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20554. printf "%s\n" "no" >&6; }
  20555. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20556. _pkg_short_errors_supported=yes
  20557. else
  20558. _pkg_short_errors_supported=no
  20559. fi
  20560. if test $_pkg_short_errors_supported = yes; then
  20561. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  20562. else
  20563. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  20564. fi
  20565. # Put the nasty error message in config.log where it belongs
  20566. echo "$RPI_PKG_ERRORS" >&5
  20567. video_rpi=no
  20568. elif test $pkg_failed = untried; then
  20569. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20570. printf "%s\n" "no" >&6; }
  20571. video_rpi=no
  20572. else
  20573. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  20574. RPI_LIBS=$pkg_cv_RPI_LIBS
  20575. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20576. printf "%s\n" "yes" >&6; }
  20577. video_rpi=yes
  20578. fi
  20579. if test x$video_rpi = xno; then
  20580. if test x$ARCH = xnetbsd; then
  20581. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  20582. RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  20583. else
  20584. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  20585. RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  20586. fi
  20587. fi
  20588. # Save the original compiler flags and libraries
  20589. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20590. # Add the Raspberry Pi compiler flags and libraries
  20591. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
  20592. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi 2/3" >&5
  20593. printf %s "checking for Raspberry Pi 2/3... " >&6; }
  20594. have_video_rpi=no
  20595. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20596. /* end confdefs.h. */
  20597. #include <bcm_host.h>
  20598. #include <EGL/eglplatform.h>
  20599. int
  20600. main (void)
  20601. {
  20602. EGL_DISPMANX_WINDOW_T window;
  20603. bcm_host_init();
  20604. ;
  20605. return 0;
  20606. }
  20607. _ACEOF
  20608. if ac_fn_c_try_link "$LINENO"
  20609. then :
  20610. have_video_rpi=yes
  20611. fi
  20612. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20613. conftest$ac_exeext conftest.$ac_ext
  20614. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  20615. printf "%s\n" "$have_video_rpi" >&6; }
  20616. # Restore the compiler flags and libraries
  20617. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20618. if test x$have_video_rpi = xyes; then
  20619. CFLAGS="$CFLAGS $RPI_CFLAGS"
  20620. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  20621. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  20622. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
  20623. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  20624. printf "%s\n" "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  20625. SUMMARY_video="${SUMMARY_video} rpi"
  20626. have_video=yes
  20627. fi
  20628. fi
  20629. }
  20630. CheckX11()
  20631. {
  20632. # Check whether --enable-video-x11 was given.
  20633. if test ${enable_video_x11+y}
  20634. then :
  20635. enableval=$enable_video_x11;
  20636. else $as_nop
  20637. enable_video_x11=yes
  20638. case "$host" in
  20639. *-*-darwin*|*-ios-*)
  20640. enable_video_x11=no
  20641. ;;
  20642. esac
  20643. fi
  20644. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  20645. case "$host" in
  20646. *-*-darwin*)
  20647. # This isn't necessary for X11, but fixes GLX detection
  20648. if test "x$x_includes" = xNONE && \
  20649. test "x$x_libraries" = xNONE && \
  20650. test -d /opt/X11/include && \
  20651. test -d /opt/X11/lib; then
  20652. x_includes="/opt/X11/include"
  20653. x_libraries="/opt/X11/lib"
  20654. fi
  20655. ;;
  20656. esac
  20657. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  20658. printf %s "checking for X... " >&6; }
  20659. # Check whether --with-x was given.
  20660. if test ${with_x+y}
  20661. then :
  20662. withval=$with_x;
  20663. fi
  20664. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  20665. if test "x$with_x" = xno; then
  20666. # The user explicitly disabled X.
  20667. have_x=disabled
  20668. else
  20669. case $x_includes,$x_libraries in #(
  20670. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  20671. *,NONE | NONE,*) if test ${ac_cv_have_x+y}
  20672. then :
  20673. printf %s "(cached) " >&6
  20674. else $as_nop
  20675. # One or both of the vars are not set, and there is no cached value.
  20676. ac_x_includes=no
  20677. ac_x_libraries=no
  20678. # Do we need to do anything special at all?
  20679. ac_save_LIBS=$LIBS
  20680. LIBS="-lX11 $LIBS"
  20681. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20682. /* end confdefs.h. */
  20683. #include <X11/Xlib.h>
  20684. int
  20685. main (void)
  20686. {
  20687. XrmInitialize ()
  20688. ;
  20689. return 0;
  20690. }
  20691. _ACEOF
  20692. if ac_fn_c_try_link "$LINENO"
  20693. then :
  20694. # We can compile and link X programs with no special options.
  20695. ac_x_includes=
  20696. ac_x_libraries=
  20697. fi
  20698. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20699. conftest$ac_exeext conftest.$ac_ext
  20700. LIBS="$ac_save_LIBS"
  20701. # If that didn't work, only try xmkmf and file system searches
  20702. # for native compilation.
  20703. if test x"$ac_x_includes" = xno && test "$cross_compiling" = no
  20704. then :
  20705. rm -f -r conftest.dir
  20706. if mkdir conftest.dir; then
  20707. cd conftest.dir
  20708. cat >Imakefile <<'_ACEOF'
  20709. incroot:
  20710. @echo incroot='${INCROOT}'
  20711. usrlibdir:
  20712. @echo usrlibdir='${USRLIBDIR}'
  20713. libdir:
  20714. @echo libdir='${LIBDIR}'
  20715. _ACEOF
  20716. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  20717. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  20718. for ac_var in incroot usrlibdir libdir; do
  20719. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  20720. done
  20721. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  20722. for ac_extension in a so sl dylib la dll; do
  20723. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  20724. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  20725. ac_im_usrlibdir=$ac_im_libdir; break
  20726. fi
  20727. done
  20728. # Screen out bogus values from the imake configuration. They are
  20729. # bogus both because they are the default anyway, and because
  20730. # using them would break gcc on systems where it needs fixed includes.
  20731. case $ac_im_incroot in
  20732. /usr/include) ac_x_includes= ;;
  20733. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  20734. esac
  20735. case $ac_im_usrlibdir in
  20736. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  20737. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  20738. esac
  20739. fi
  20740. cd ..
  20741. rm -f -r conftest.dir
  20742. fi
  20743. # Standard set of common directories for X headers.
  20744. # Check X11 before X11Rn because it is often a symlink to the current release.
  20745. ac_x_header_dirs='
  20746. /usr/X11/include
  20747. /usr/X11R7/include
  20748. /usr/X11R6/include
  20749. /usr/X11R5/include
  20750. /usr/X11R4/include
  20751. /usr/include/X11
  20752. /usr/include/X11R7
  20753. /usr/include/X11R6
  20754. /usr/include/X11R5
  20755. /usr/include/X11R4
  20756. /usr/local/X11/include
  20757. /usr/local/X11R7/include
  20758. /usr/local/X11R6/include
  20759. /usr/local/X11R5/include
  20760. /usr/local/X11R4/include
  20761. /usr/local/include/X11
  20762. /usr/local/include/X11R7
  20763. /usr/local/include/X11R6
  20764. /usr/local/include/X11R5
  20765. /usr/local/include/X11R4
  20766. /opt/X11/include
  20767. /usr/X386/include
  20768. /usr/x386/include
  20769. /usr/XFree86/include/X11
  20770. /usr/include
  20771. /usr/local/include
  20772. /usr/unsupported/include
  20773. /usr/athena/include
  20774. /usr/local/x11r5/include
  20775. /usr/lpp/Xamples/include
  20776. /usr/openwin/include
  20777. /usr/openwin/share/include'
  20778. if test "$ac_x_includes" = no; then
  20779. # Guess where to find include files, by looking for Xlib.h.
  20780. # First, try using that file with no special directory specified.
  20781. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20782. /* end confdefs.h. */
  20783. #include <X11/Xlib.h>
  20784. _ACEOF
  20785. if ac_fn_c_try_cpp "$LINENO"
  20786. then :
  20787. # We can compile using X headers with no special include directory.
  20788. ac_x_includes=
  20789. else $as_nop
  20790. for ac_dir in $ac_x_header_dirs; do
  20791. if test -r "$ac_dir/X11/Xlib.h"; then
  20792. ac_x_includes=$ac_dir
  20793. break
  20794. fi
  20795. done
  20796. fi
  20797. rm -f conftest.err conftest.i conftest.$ac_ext
  20798. fi # $ac_x_includes = no
  20799. if test "$ac_x_libraries" = no; then
  20800. # Check for the libraries.
  20801. # See if we find them without any special options.
  20802. # Don't add to $LIBS permanently.
  20803. ac_save_LIBS=$LIBS
  20804. LIBS="-lX11 $LIBS"
  20805. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20806. /* end confdefs.h. */
  20807. #include <X11/Xlib.h>
  20808. int
  20809. main (void)
  20810. {
  20811. XrmInitialize ()
  20812. ;
  20813. return 0;
  20814. }
  20815. _ACEOF
  20816. if ac_fn_c_try_link "$LINENO"
  20817. then :
  20818. LIBS=$ac_save_LIBS
  20819. # We can link X programs with no special library path.
  20820. ac_x_libraries=
  20821. else $as_nop
  20822. LIBS=$ac_save_LIBS
  20823. for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  20824. do
  20825. # Don't even attempt the hair of trying to link an X program!
  20826. for ac_extension in a so sl dylib la dll; do
  20827. if test -r "$ac_dir/libX11.$ac_extension"; then
  20828. ac_x_libraries=$ac_dir
  20829. break 2
  20830. fi
  20831. done
  20832. done
  20833. fi
  20834. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20835. conftest$ac_exeext conftest.$ac_ext
  20836. fi # $ac_x_libraries = no
  20837. fi
  20838. # Record the results.
  20839. case $ac_x_includes,$ac_x_libraries in #(
  20840. no,* | *,no | *\'*) :
  20841. # Didn't find X, or a directory has "'" in its name.
  20842. ac_cv_have_x="have_x=no" ;; #(
  20843. *) :
  20844. # Record where we found X for the cache.
  20845. ac_cv_have_x="have_x=yes\
  20846. ac_x_includes='$ac_x_includes'\
  20847. ac_x_libraries='$ac_x_libraries'" ;;
  20848. esac
  20849. fi
  20850. ;; #(
  20851. *) have_x=yes;;
  20852. esac
  20853. eval "$ac_cv_have_x"
  20854. fi # $with_x != no
  20855. if test "$have_x" != yes; then
  20856. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  20857. printf "%s\n" "$have_x" >&6; }
  20858. no_x=yes
  20859. else
  20860. # If each of the values was on the command line, it overrides each guess.
  20861. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  20862. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  20863. # Update the cache value to reflect the command line values.
  20864. ac_cv_have_x="have_x=yes\
  20865. ac_x_includes='$x_includes'\
  20866. ac_x_libraries='$x_libraries'"
  20867. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  20868. printf "%s\n" "libraries $x_libraries, headers $x_includes" >&6; }
  20869. fi
  20870. if test "$no_x" = yes; then
  20871. # Not all programs may use this symbol, but it does not hurt to define it.
  20872. printf "%s\n" "#define X_DISPLAY_MISSING 1" >>confdefs.h
  20873. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  20874. else
  20875. if test -n "$x_includes"; then
  20876. X_CFLAGS="$X_CFLAGS -I$x_includes"
  20877. fi
  20878. # It would also be nice to do this for all -L options, not just this one.
  20879. if test -n "$x_libraries"; then
  20880. X_LIBS="$X_LIBS -L$x_libraries"
  20881. # For Solaris; some versions of Sun CC require a space after -R and
  20882. # others require no space. Words are not sufficient . . . .
  20883. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  20884. printf %s "checking whether -R must be followed by a space... " >&6; }
  20885. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  20886. ac_xsave_c_werror_flag=$ac_c_werror_flag
  20887. ac_c_werror_flag=yes
  20888. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20889. /* end confdefs.h. */
  20890. int
  20891. main (void)
  20892. {
  20893. ;
  20894. return 0;
  20895. }
  20896. _ACEOF
  20897. if ac_fn_c_try_link "$LINENO"
  20898. then :
  20899. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20900. printf "%s\n" "no" >&6; }
  20901. X_LIBS="$X_LIBS -R$x_libraries"
  20902. else $as_nop
  20903. LIBS="$ac_xsave_LIBS -R $x_libraries"
  20904. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20905. /* end confdefs.h. */
  20906. int
  20907. main (void)
  20908. {
  20909. ;
  20910. return 0;
  20911. }
  20912. _ACEOF
  20913. if ac_fn_c_try_link "$LINENO"
  20914. then :
  20915. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20916. printf "%s\n" "yes" >&6; }
  20917. X_LIBS="$X_LIBS -R $x_libraries"
  20918. else $as_nop
  20919. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  20920. printf "%s\n" "neither works" >&6; }
  20921. fi
  20922. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20923. conftest$ac_exeext conftest.$ac_ext
  20924. fi
  20925. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20926. conftest$ac_exeext conftest.$ac_ext
  20927. ac_c_werror_flag=$ac_xsave_c_werror_flag
  20928. LIBS=$ac_xsave_LIBS
  20929. fi
  20930. # Check for system-dependent libraries X programs must link with.
  20931. # Do this before checking for the system-independent R6 libraries
  20932. # (-lICE), since we may need -lsocket or whatever for X linking.
  20933. if test "$ISC" = yes; then
  20934. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  20935. else
  20936. # Martyn Johnson says this is needed for Ultrix, if the X
  20937. # libraries were built with DECnet support. And Karl Berry says
  20938. # the Alpha needs dnet_stub (dnet does not exist).
  20939. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  20940. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20941. /* end confdefs.h. */
  20942. /* Override any GCC internal prototype to avoid an error.
  20943. Use char because int might match the return type of a GCC
  20944. builtin and then its argument prototype would still apply. */
  20945. char XOpenDisplay ();
  20946. int
  20947. main (void)
  20948. {
  20949. return XOpenDisplay ();
  20950. ;
  20951. return 0;
  20952. }
  20953. _ACEOF
  20954. if ac_fn_c_try_link "$LINENO"
  20955. then :
  20956. else $as_nop
  20957. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  20958. printf %s "checking for dnet_ntoa in -ldnet... " >&6; }
  20959. if test ${ac_cv_lib_dnet_dnet_ntoa+y}
  20960. then :
  20961. printf %s "(cached) " >&6
  20962. else $as_nop
  20963. ac_check_lib_save_LIBS=$LIBS
  20964. LIBS="-ldnet $LIBS"
  20965. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20966. /* end confdefs.h. */
  20967. /* Override any GCC internal prototype to avoid an error.
  20968. Use char because int might match the return type of a GCC
  20969. builtin and then its argument prototype would still apply. */
  20970. char dnet_ntoa ();
  20971. int
  20972. main (void)
  20973. {
  20974. return dnet_ntoa ();
  20975. ;
  20976. return 0;
  20977. }
  20978. _ACEOF
  20979. if ac_fn_c_try_link "$LINENO"
  20980. then :
  20981. ac_cv_lib_dnet_dnet_ntoa=yes
  20982. else $as_nop
  20983. ac_cv_lib_dnet_dnet_ntoa=no
  20984. fi
  20985. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20986. conftest$ac_exeext conftest.$ac_ext
  20987. LIBS=$ac_check_lib_save_LIBS
  20988. fi
  20989. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  20990. printf "%s\n" "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  20991. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
  20992. then :
  20993. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  20994. fi
  20995. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  20996. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  20997. printf %s "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  20998. if test ${ac_cv_lib_dnet_stub_dnet_ntoa+y}
  20999. then :
  21000. printf %s "(cached) " >&6
  21001. else $as_nop
  21002. ac_check_lib_save_LIBS=$LIBS
  21003. LIBS="-ldnet_stub $LIBS"
  21004. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21005. /* end confdefs.h. */
  21006. /* Override any GCC internal prototype to avoid an error.
  21007. Use char because int might match the return type of a GCC
  21008. builtin and then its argument prototype would still apply. */
  21009. char dnet_ntoa ();
  21010. int
  21011. main (void)
  21012. {
  21013. return dnet_ntoa ();
  21014. ;
  21015. return 0;
  21016. }
  21017. _ACEOF
  21018. if ac_fn_c_try_link "$LINENO"
  21019. then :
  21020. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  21021. else $as_nop
  21022. ac_cv_lib_dnet_stub_dnet_ntoa=no
  21023. fi
  21024. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21025. conftest$ac_exeext conftest.$ac_ext
  21026. LIBS=$ac_check_lib_save_LIBS
  21027. fi
  21028. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  21029. printf "%s\n" "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  21030. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes
  21031. then :
  21032. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  21033. fi
  21034. fi
  21035. fi
  21036. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21037. conftest$ac_exeext conftest.$ac_ext
  21038. LIBS="$ac_xsave_LIBS"
  21039. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  21040. # to get the SysV transport functions.
  21041. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  21042. # needs -lnsl.
  21043. # The nsl library prevents programs from opening the X display
  21044. # on Irix 5.2, according to T.E. Dickey.
  21045. # The functions gethostbyname, getservbyname, and inet_addr are
  21046. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  21047. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  21048. if test "x$ac_cv_func_gethostbyname" = xyes
  21049. then :
  21050. fi
  21051. if test $ac_cv_func_gethostbyname = no; then
  21052. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  21053. printf %s "checking for gethostbyname in -lnsl... " >&6; }
  21054. if test ${ac_cv_lib_nsl_gethostbyname+y}
  21055. then :
  21056. printf %s "(cached) " >&6
  21057. else $as_nop
  21058. ac_check_lib_save_LIBS=$LIBS
  21059. LIBS="-lnsl $LIBS"
  21060. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21061. /* end confdefs.h. */
  21062. /* Override any GCC internal prototype to avoid an error.
  21063. Use char because int might match the return type of a GCC
  21064. builtin and then its argument prototype would still apply. */
  21065. char gethostbyname ();
  21066. int
  21067. main (void)
  21068. {
  21069. return gethostbyname ();
  21070. ;
  21071. return 0;
  21072. }
  21073. _ACEOF
  21074. if ac_fn_c_try_link "$LINENO"
  21075. then :
  21076. ac_cv_lib_nsl_gethostbyname=yes
  21077. else $as_nop
  21078. ac_cv_lib_nsl_gethostbyname=no
  21079. fi
  21080. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21081. conftest$ac_exeext conftest.$ac_ext
  21082. LIBS=$ac_check_lib_save_LIBS
  21083. fi
  21084. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  21085. printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
  21086. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
  21087. then :
  21088. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  21089. fi
  21090. if test $ac_cv_lib_nsl_gethostbyname = no; then
  21091. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  21092. printf %s "checking for gethostbyname in -lbsd... " >&6; }
  21093. if test ${ac_cv_lib_bsd_gethostbyname+y}
  21094. then :
  21095. printf %s "(cached) " >&6
  21096. else $as_nop
  21097. ac_check_lib_save_LIBS=$LIBS
  21098. LIBS="-lbsd $LIBS"
  21099. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21100. /* end confdefs.h. */
  21101. /* Override any GCC internal prototype to avoid an error.
  21102. Use char because int might match the return type of a GCC
  21103. builtin and then its argument prototype would still apply. */
  21104. char gethostbyname ();
  21105. int
  21106. main (void)
  21107. {
  21108. return gethostbyname ();
  21109. ;
  21110. return 0;
  21111. }
  21112. _ACEOF
  21113. if ac_fn_c_try_link "$LINENO"
  21114. then :
  21115. ac_cv_lib_bsd_gethostbyname=yes
  21116. else $as_nop
  21117. ac_cv_lib_bsd_gethostbyname=no
  21118. fi
  21119. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21120. conftest$ac_exeext conftest.$ac_ext
  21121. LIBS=$ac_check_lib_save_LIBS
  21122. fi
  21123. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  21124. printf "%s\n" "$ac_cv_lib_bsd_gethostbyname" >&6; }
  21125. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes
  21126. then :
  21127. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  21128. fi
  21129. fi
  21130. fi
  21131. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  21132. # socket/setsockopt and other routines are undefined under SCO ODT
  21133. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  21134. # on later versions), says Simon Leinen: it contains gethostby*
  21135. # variants that don't use the name server (or something). -lsocket
  21136. # must be given before -lnsl if both are needed. We assume that
  21137. # if connect needs -lnsl, so does gethostbyname.
  21138. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  21139. if test "x$ac_cv_func_connect" = xyes
  21140. then :
  21141. fi
  21142. if test $ac_cv_func_connect = no; then
  21143. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  21144. printf %s "checking for connect in -lsocket... " >&6; }
  21145. if test ${ac_cv_lib_socket_connect+y}
  21146. then :
  21147. printf %s "(cached) " >&6
  21148. else $as_nop
  21149. ac_check_lib_save_LIBS=$LIBS
  21150. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  21151. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21152. /* end confdefs.h. */
  21153. /* Override any GCC internal prototype to avoid an error.
  21154. Use char because int might match the return type of a GCC
  21155. builtin and then its argument prototype would still apply. */
  21156. char connect ();
  21157. int
  21158. main (void)
  21159. {
  21160. return connect ();
  21161. ;
  21162. return 0;
  21163. }
  21164. _ACEOF
  21165. if ac_fn_c_try_link "$LINENO"
  21166. then :
  21167. ac_cv_lib_socket_connect=yes
  21168. else $as_nop
  21169. ac_cv_lib_socket_connect=no
  21170. fi
  21171. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21172. conftest$ac_exeext conftest.$ac_ext
  21173. LIBS=$ac_check_lib_save_LIBS
  21174. fi
  21175. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  21176. printf "%s\n" "$ac_cv_lib_socket_connect" >&6; }
  21177. if test "x$ac_cv_lib_socket_connect" = xyes
  21178. then :
  21179. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  21180. fi
  21181. fi
  21182. # Guillermo Gomez says -lposix is necessary on A/UX.
  21183. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  21184. if test "x$ac_cv_func_remove" = xyes
  21185. then :
  21186. fi
  21187. if test $ac_cv_func_remove = no; then
  21188. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  21189. printf %s "checking for remove in -lposix... " >&6; }
  21190. if test ${ac_cv_lib_posix_remove+y}
  21191. then :
  21192. printf %s "(cached) " >&6
  21193. else $as_nop
  21194. ac_check_lib_save_LIBS=$LIBS
  21195. LIBS="-lposix $LIBS"
  21196. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21197. /* end confdefs.h. */
  21198. /* Override any GCC internal prototype to avoid an error.
  21199. Use char because int might match the return type of a GCC
  21200. builtin and then its argument prototype would still apply. */
  21201. char remove ();
  21202. int
  21203. main (void)
  21204. {
  21205. return remove ();
  21206. ;
  21207. return 0;
  21208. }
  21209. _ACEOF
  21210. if ac_fn_c_try_link "$LINENO"
  21211. then :
  21212. ac_cv_lib_posix_remove=yes
  21213. else $as_nop
  21214. ac_cv_lib_posix_remove=no
  21215. fi
  21216. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21217. conftest$ac_exeext conftest.$ac_ext
  21218. LIBS=$ac_check_lib_save_LIBS
  21219. fi
  21220. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  21221. printf "%s\n" "$ac_cv_lib_posix_remove" >&6; }
  21222. if test "x$ac_cv_lib_posix_remove" = xyes
  21223. then :
  21224. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  21225. fi
  21226. fi
  21227. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  21228. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  21229. if test "x$ac_cv_func_shmat" = xyes
  21230. then :
  21231. fi
  21232. if test $ac_cv_func_shmat = no; then
  21233. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  21234. printf %s "checking for shmat in -lipc... " >&6; }
  21235. if test ${ac_cv_lib_ipc_shmat+y}
  21236. then :
  21237. printf %s "(cached) " >&6
  21238. else $as_nop
  21239. ac_check_lib_save_LIBS=$LIBS
  21240. LIBS="-lipc $LIBS"
  21241. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21242. /* end confdefs.h. */
  21243. /* Override any GCC internal prototype to avoid an error.
  21244. Use char because int might match the return type of a GCC
  21245. builtin and then its argument prototype would still apply. */
  21246. char shmat ();
  21247. int
  21248. main (void)
  21249. {
  21250. return shmat ();
  21251. ;
  21252. return 0;
  21253. }
  21254. _ACEOF
  21255. if ac_fn_c_try_link "$LINENO"
  21256. then :
  21257. ac_cv_lib_ipc_shmat=yes
  21258. else $as_nop
  21259. ac_cv_lib_ipc_shmat=no
  21260. fi
  21261. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21262. conftest$ac_exeext conftest.$ac_ext
  21263. LIBS=$ac_check_lib_save_LIBS
  21264. fi
  21265. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  21266. printf "%s\n" "$ac_cv_lib_ipc_shmat" >&6; }
  21267. if test "x$ac_cv_lib_ipc_shmat" = xyes
  21268. then :
  21269. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  21270. fi
  21271. fi
  21272. fi
  21273. # Check for libraries that X11R6 Xt/Xaw programs need.
  21274. ac_save_LDFLAGS=$LDFLAGS
  21275. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  21276. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  21277. # check for ICE first), but we must link in the order -lSM -lICE or
  21278. # we get undefined symbols. So assume we have SM if we have ICE.
  21279. # These have to be linked with before -lX11, unlike the other
  21280. # libraries we check for below, so use a different variable.
  21281. # John Interrante, Karl Berry
  21282. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  21283. printf %s "checking for IceConnectionNumber in -lICE... " >&6; }
  21284. if test ${ac_cv_lib_ICE_IceConnectionNumber+y}
  21285. then :
  21286. printf %s "(cached) " >&6
  21287. else $as_nop
  21288. ac_check_lib_save_LIBS=$LIBS
  21289. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  21290. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21291. /* end confdefs.h. */
  21292. /* Override any GCC internal prototype to avoid an error.
  21293. Use char because int might match the return type of a GCC
  21294. builtin and then its argument prototype would still apply. */
  21295. char IceConnectionNumber ();
  21296. int
  21297. main (void)
  21298. {
  21299. return IceConnectionNumber ();
  21300. ;
  21301. return 0;
  21302. }
  21303. _ACEOF
  21304. if ac_fn_c_try_link "$LINENO"
  21305. then :
  21306. ac_cv_lib_ICE_IceConnectionNumber=yes
  21307. else $as_nop
  21308. ac_cv_lib_ICE_IceConnectionNumber=no
  21309. fi
  21310. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21311. conftest$ac_exeext conftest.$ac_ext
  21312. LIBS=$ac_check_lib_save_LIBS
  21313. fi
  21314. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  21315. printf "%s\n" "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  21316. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes
  21317. then :
  21318. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  21319. fi
  21320. LDFLAGS=$ac_save_LDFLAGS
  21321. fi
  21322. if test x$have_x = xyes; then
  21323. # Check whether --enable-x11-shared was given.
  21324. if test ${enable_x11_shared+y}
  21325. then :
  21326. enableval=$enable_x11_shared;
  21327. else $as_nop
  21328. enable_x11_shared=maybe
  21329. fi
  21330. case "$host" in
  21331. *-*-darwin*)
  21332. # Apple now puts this in /opt/X11
  21333. x11_lib='/opt/X11/lib/libX11.6.dylib'
  21334. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  21335. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  21336. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  21337. xfixes_lib='/opt/X11/lib/libXfixes.3.dylib'
  21338. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  21339. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  21340. xss_lib='/opt/X11/lib/libXss.1.dylib'
  21341. ;;
  21342. *-*-openbsd*)
  21343. x11_lib='libX11.so'
  21344. x11ext_lib='libXext.so'
  21345. xcursor_lib='libXcursor.so'
  21346. xinput_lib='libXi.so'
  21347. xfixes_lib='libXfixes.so'
  21348. xrandr_lib='libXrandr.so'
  21349. xrender_lib='libXrender.so'
  21350. xss_lib='libXss.so'
  21351. ;;
  21352. *)
  21353. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21354. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21355. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21356. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21357. xfixes_lib=`find_lib "libXfixes.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21358. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21359. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21360. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21361. ;;
  21362. esac
  21363. if test x$ac_cv_func_shmat != xyes; then
  21364. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  21365. fi
  21366. CFLAGS="$CFLAGS $X_CFLAGS"
  21367. LDFLAGS="$LDFLAGS $X_LIBS"
  21368. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  21369. #include <X11/Xproto.h>
  21370. "
  21371. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes
  21372. then :
  21373. have_xext_h_hdr=yes
  21374. else $as_nop
  21375. have_xext_h_hdr=no
  21376. fi
  21377. if test x$have_xext_h_hdr != xyes; then
  21378. as_fn_error $? "
  21379. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  21380. " "$LINENO" 5
  21381. fi
  21382. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  21383. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  21384. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  21385. # Needed so SDL applications can include SDL_syswm.h
  21386. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  21387. if test x$enable_x11_shared = xmaybe; then
  21388. enable_x11_shared=yes
  21389. fi
  21390. if test x$have_loadso != xyes && \
  21391. test x$enable_x11_shared = xyes; then
  21392. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  21393. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  21394. enable_x11_shared=no
  21395. fi
  21396. if test x$have_loadso = xyes && \
  21397. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  21398. echo "-- dynamic libX11 -> $x11_lib"
  21399. echo "-- dynamic libX11ext -> $x11ext_lib"
  21400. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC \"$x11_lib\"" >>confdefs.h
  21401. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT \"$x11ext_lib\"" >>confdefs.h
  21402. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  21403. else
  21404. enable_x11_shared=no
  21405. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  21406. SUMMARY_video="${SUMMARY_video} x11"
  21407. fi
  21408. have_video=yes
  21409. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  21410. printf %s "checking for XGenericEvent... " >&6; }
  21411. have_XGenericEvent=no
  21412. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21413. /* end confdefs.h. */
  21414. #include <X11/Xlib.h>
  21415. int
  21416. main (void)
  21417. {
  21418. Display *display;
  21419. XEvent event;
  21420. XGenericEventCookie *cookie = &event.xcookie;
  21421. XNextEvent(display, &event);
  21422. XGetEventData(display, cookie);
  21423. XFreeEventData(display, cookie);
  21424. ;
  21425. return 0;
  21426. }
  21427. _ACEOF
  21428. if ac_fn_c_try_compile "$LINENO"
  21429. then :
  21430. have_XGenericEvent=yes
  21431. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  21432. fi
  21433. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21434. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  21435. printf "%s\n" "$have_XGenericEvent" >&6; }
  21436. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  21437. printf %s "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  21438. if test ${ac_cv_lib_X11_XkbKeycodeToKeysym+y}
  21439. then :
  21440. printf %s "(cached) " >&6
  21441. else $as_nop
  21442. ac_check_lib_save_LIBS=$LIBS
  21443. LIBS="-lX11 $LIBS"
  21444. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21445. /* end confdefs.h. */
  21446. /* Override any GCC internal prototype to avoid an error.
  21447. Use char because int might match the return type of a GCC
  21448. builtin and then its argument prototype would still apply. */
  21449. char XkbKeycodeToKeysym ();
  21450. int
  21451. main (void)
  21452. {
  21453. return XkbKeycodeToKeysym ();
  21454. ;
  21455. return 0;
  21456. }
  21457. _ACEOF
  21458. if ac_fn_c_try_link "$LINENO"
  21459. then :
  21460. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  21461. else $as_nop
  21462. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  21463. fi
  21464. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21465. conftest$ac_exeext conftest.$ac_ext
  21466. LIBS=$ac_check_lib_save_LIBS
  21467. fi
  21468. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  21469. printf "%s\n" "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  21470. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes
  21471. then :
  21472. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  21473. fi
  21474. # Check whether --enable-video-x11-xcursor was given.
  21475. if test ${enable_video_x11_xcursor+y}
  21476. then :
  21477. enableval=$enable_video_x11_xcursor;
  21478. else $as_nop
  21479. enable_video_x11_xcursor=yes
  21480. fi
  21481. if test x$enable_video_x11_xcursor = xyes; then
  21482. definitely_enable_video_x11_xcursor=no
  21483. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  21484. "
  21485. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes
  21486. then :
  21487. have_xcursor_h_hdr=yes
  21488. else $as_nop
  21489. have_xcursor_h_hdr=no
  21490. fi
  21491. if test x$have_xcursor_h_hdr = xyes; then
  21492. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  21493. echo "-- dynamic libXcursor -> $xcursor_lib"
  21494. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR \"$xcursor_lib\"" >>confdefs.h
  21495. definitely_enable_video_x11_xcursor=yes
  21496. else
  21497. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  21498. printf %s "checking for XcursorImageCreate in -lXcursor... " >&6; }
  21499. if test ${ac_cv_lib_Xcursor_XcursorImageCreate+y}
  21500. then :
  21501. printf %s "(cached) " >&6
  21502. else $as_nop
  21503. ac_check_lib_save_LIBS=$LIBS
  21504. LIBS="-lXcursor $LIBS"
  21505. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21506. /* end confdefs.h. */
  21507. /* Override any GCC internal prototype to avoid an error.
  21508. Use char because int might match the return type of a GCC
  21509. builtin and then its argument prototype would still apply. */
  21510. char XcursorImageCreate ();
  21511. int
  21512. main (void)
  21513. {
  21514. return XcursorImageCreate ();
  21515. ;
  21516. return 0;
  21517. }
  21518. _ACEOF
  21519. if ac_fn_c_try_link "$LINENO"
  21520. then :
  21521. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  21522. else $as_nop
  21523. ac_cv_lib_Xcursor_XcursorImageCreate=no
  21524. fi
  21525. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21526. conftest$ac_exeext conftest.$ac_ext
  21527. LIBS=$ac_check_lib_save_LIBS
  21528. fi
  21529. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  21530. printf "%s\n" "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  21531. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes
  21532. then :
  21533. have_xcursor_lib=yes
  21534. fi
  21535. if test x$have_xcursor_lib = xyes ; then
  21536. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  21537. definitely_enable_video_x11_xcursor=yes
  21538. fi
  21539. fi
  21540. fi
  21541. fi
  21542. if test x$definitely_enable_video_x11_xcursor = xyes; then
  21543. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  21544. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  21545. fi
  21546. # Check whether --enable-video-x11-xdbe was given.
  21547. if test ${enable_video_x11_xdbe+y}
  21548. then :
  21549. enableval=$enable_video_x11_xdbe;
  21550. else $as_nop
  21551. enable_video_x11_xdbe=yes
  21552. fi
  21553. if test x$enable_video_x11_xdbe = xyes; then
  21554. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  21555. "
  21556. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes
  21557. then :
  21558. have_dbe_h_hdr=yes
  21559. else $as_nop
  21560. have_dbe_h_hdr=no
  21561. fi
  21562. if test x$have_dbe_h_hdr = xyes; then
  21563. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  21564. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  21565. fi
  21566. fi
  21567. # Check whether --enable-video-x11-xinput was given.
  21568. if test ${enable_video_x11_xinput+y}
  21569. then :
  21570. enableval=$enable_video_x11_xinput;
  21571. else $as_nop
  21572. enable_video_x11_xinput=yes
  21573. fi
  21574. if test x$enable_video_x11_xinput = xyes; then
  21575. definitely_enable_video_x11_xinput=no
  21576. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  21577. "
  21578. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes
  21579. then :
  21580. have_xinput_h_hdr=yes
  21581. else $as_nop
  21582. have_xinput_h_hdr=no
  21583. fi
  21584. if test x$have_xinput_h_hdr = xyes; then
  21585. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  21586. echo "-- dynamic libXi -> $xinput_lib"
  21587. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 \"$xinput_lib\"" >>confdefs.h
  21588. definitely_enable_video_x11_xinput=yes
  21589. else
  21590. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  21591. printf %s "checking for XOpenDevice in -lXi... " >&6; }
  21592. if test ${ac_cv_lib_Xi_XOpenDevice+y}
  21593. then :
  21594. printf %s "(cached) " >&6
  21595. else $as_nop
  21596. ac_check_lib_save_LIBS=$LIBS
  21597. LIBS="-lXi $LIBS"
  21598. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21599. /* end confdefs.h. */
  21600. /* Override any GCC internal prototype to avoid an error.
  21601. Use char because int might match the return type of a GCC
  21602. builtin and then its argument prototype would still apply. */
  21603. char XOpenDevice ();
  21604. int
  21605. main (void)
  21606. {
  21607. return XOpenDevice ();
  21608. ;
  21609. return 0;
  21610. }
  21611. _ACEOF
  21612. if ac_fn_c_try_link "$LINENO"
  21613. then :
  21614. ac_cv_lib_Xi_XOpenDevice=yes
  21615. else $as_nop
  21616. ac_cv_lib_Xi_XOpenDevice=no
  21617. fi
  21618. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21619. conftest$ac_exeext conftest.$ac_ext
  21620. LIBS=$ac_check_lib_save_LIBS
  21621. fi
  21622. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  21623. printf "%s\n" "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  21624. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes
  21625. then :
  21626. have_xinput_lib=yes
  21627. fi
  21628. if test x$have_xinput_lib = xyes ; then
  21629. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  21630. definitely_enable_video_x11_xinput=yes
  21631. fi
  21632. fi
  21633. fi
  21634. fi
  21635. if test x$definitely_enable_video_x11_xinput = xyes; then
  21636. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  21637. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  21638. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  21639. printf %s "checking for xinput2 multitouch... " >&6; }
  21640. have_xinput2_multitouch=no
  21641. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21642. /* end confdefs.h. */
  21643. #include <X11/Xlib.h>
  21644. #include <X11/Xproto.h>
  21645. #include <X11/extensions/XInput2.h>
  21646. int
  21647. main (void)
  21648. {
  21649. int event_type = XI_TouchBegin;
  21650. XITouchClassInfo *t;
  21651. ;
  21652. return 0;
  21653. }
  21654. _ACEOF
  21655. if ac_fn_c_try_compile "$LINENO"
  21656. then :
  21657. have_xinput2_multitouch=yes
  21658. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  21659. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  21660. fi
  21661. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21662. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  21663. printf "%s\n" "$have_xinput2_multitouch" >&6; }
  21664. fi
  21665. # Check whether --enable-video-x11-xfixes was given.
  21666. if test ${enable_video_x11_xfixes+y}
  21667. then :
  21668. enableval=$enable_video_x11_xfixes;
  21669. else $as_nop
  21670. enable_video_x11_xfixes=yes
  21671. fi
  21672. if test x$enable_video_x11_xfixes = xyes; then
  21673. definitely_enable_video_x11_xfixes=no
  21674. # check along with XInput2.h because we use Xfixes with XIBarrierReleasePointer
  21675. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11/extensions/Xfixes.h" >&5
  21676. printf %s "checking for X11/extensions/Xfixes.h... " >&6; }
  21677. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21678. /* end confdefs.h. */
  21679. #include <X11/Xlib.h>
  21680. #include <X11/Xproto.h>
  21681. #include <X11/extensions/XInput2.h>
  21682. #include <X11/extensions/Xfixes.h>
  21683. int
  21684. main (void)
  21685. {
  21686. BarrierEventID b;
  21687. ;
  21688. return 0;
  21689. }
  21690. _ACEOF
  21691. if ac_fn_c_try_compile "$LINENO"
  21692. then :
  21693. have_xfixes_h_hdr=yes
  21694. else $as_nop
  21695. have_xfixes_h_hdr=no
  21696. fi
  21697. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21698. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xfixes_h_hdr" >&5
  21699. printf "%s\n" "$have_xfixes_h_hdr" >&6; }
  21700. if test x$have_xfixes_h_hdr = xyes; then
  21701. if test x$enable_x11_shared = xyes && test x$xfixes_lib != x ; then
  21702. echo "-- dynamic libXfixes -> $xfixes_lib"
  21703. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XFIXES \"$xfixes_lib\"" >>confdefs.h
  21704. definitely_enable_video_x11_xfixes=yes
  21705. else
  21706. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XFixesCreatePointerBarrier in -lXfixes" >&5
  21707. printf %s "checking for XFixesCreatePointerBarrier in -lXfixes... " >&6; }
  21708. if test ${ac_cv_lib_Xfixes_XFixesCreatePointerBarrier+y}
  21709. then :
  21710. printf %s "(cached) " >&6
  21711. else $as_nop
  21712. ac_check_lib_save_LIBS=$LIBS
  21713. LIBS="-lXfixes $LIBS"
  21714. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21715. /* end confdefs.h. */
  21716. /* Override any GCC internal prototype to avoid an error.
  21717. Use char because int might match the return type of a GCC
  21718. builtin and then its argument prototype would still apply. */
  21719. char XFixesCreatePointerBarrier ();
  21720. int
  21721. main (void)
  21722. {
  21723. return XFixesCreatePointerBarrier ();
  21724. ;
  21725. return 0;
  21726. }
  21727. _ACEOF
  21728. if ac_fn_c_try_link "$LINENO"
  21729. then :
  21730. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=yes
  21731. else $as_nop
  21732. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=no
  21733. fi
  21734. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21735. conftest$ac_exeext conftest.$ac_ext
  21736. LIBS=$ac_check_lib_save_LIBS
  21737. fi
  21738. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&5
  21739. printf "%s\n" "$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&6; }
  21740. if test "x$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" = xyes
  21741. then :
  21742. have_xfixes_lib=yes
  21743. fi
  21744. if test x$have_xfixes_lib = xyes ; then
  21745. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXfixes"
  21746. definitely_enable_video_x11_xfixes=yes
  21747. fi
  21748. fi
  21749. fi
  21750. fi
  21751. if test x$definitely_enable_video_x11_xfixes = xyes; then
  21752. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XFIXES 1" >>confdefs.h
  21753. SUMMARY_video_x11="${SUMMARY_video_x11} xfixes"
  21754. fi
  21755. # Check whether --enable-video-x11-xrandr was given.
  21756. if test ${enable_video_x11_xrandr+y}
  21757. then :
  21758. enableval=$enable_video_x11_xrandr;
  21759. else $as_nop
  21760. enable_video_x11_xrandr=yes
  21761. fi
  21762. if test x$enable_video_x11_xrandr = xyes; then
  21763. definitely_enable_video_x11_xrandr=no
  21764. have_xrandr_h_hdr=no
  21765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21766. /* end confdefs.h. */
  21767. #include <X11/Xlib.h>
  21768. #include <X11/extensions/Xrandr.h>
  21769. int
  21770. main (void)
  21771. {
  21772. XRRScreenResources *res = NULL;
  21773. ;
  21774. return 0;
  21775. }
  21776. _ACEOF
  21777. if ac_fn_c_try_compile "$LINENO"
  21778. then :
  21779. have_xrandr_h_hdr=yes
  21780. fi
  21781. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21782. if test x$have_xrandr_h_hdr = xyes; then
  21783. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  21784. echo "-- dynamic libXrandr -> $xrandr_lib"
  21785. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR \"$xrandr_lib\"" >>confdefs.h
  21786. definitely_enable_video_x11_xrandr=yes
  21787. else
  21788. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  21789. printf %s "checking for XRRQueryExtension in -lXrandr... " >&6; }
  21790. if test ${ac_cv_lib_Xrandr_XRRQueryExtension+y}
  21791. then :
  21792. printf %s "(cached) " >&6
  21793. else $as_nop
  21794. ac_check_lib_save_LIBS=$LIBS
  21795. LIBS="-lXrandr $LIBS"
  21796. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21797. /* end confdefs.h. */
  21798. /* Override any GCC internal prototype to avoid an error.
  21799. Use char because int might match the return type of a GCC
  21800. builtin and then its argument prototype would still apply. */
  21801. char XRRQueryExtension ();
  21802. int
  21803. main (void)
  21804. {
  21805. return XRRQueryExtension ();
  21806. ;
  21807. return 0;
  21808. }
  21809. _ACEOF
  21810. if ac_fn_c_try_link "$LINENO"
  21811. then :
  21812. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  21813. else $as_nop
  21814. ac_cv_lib_Xrandr_XRRQueryExtension=no
  21815. fi
  21816. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21817. conftest$ac_exeext conftest.$ac_ext
  21818. LIBS=$ac_check_lib_save_LIBS
  21819. fi
  21820. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  21821. printf "%s\n" "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  21822. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes
  21823. then :
  21824. have_xrandr_lib=yes
  21825. fi
  21826. if test x$have_xrandr_lib = xyes ; then
  21827. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  21828. definitely_enable_video_x11_xrandr=yes
  21829. fi
  21830. fi
  21831. fi
  21832. fi
  21833. if test x$definitely_enable_video_x11_xrandr = xyes; then
  21834. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  21835. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  21836. fi
  21837. # Check whether --enable-video-x11-scrnsaver was given.
  21838. if test ${enable_video_x11_scrnsaver+y}
  21839. then :
  21840. enableval=$enable_video_x11_scrnsaver;
  21841. else $as_nop
  21842. enable_video_x11_scrnsaver=yes
  21843. fi
  21844. if test x$enable_video_x11_scrnsaver = xyes; then
  21845. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  21846. "
  21847. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes
  21848. then :
  21849. have_scrnsaver_h_hdr=yes
  21850. else $as_nop
  21851. have_scrnsaver_h_hdr=no
  21852. fi
  21853. if test x$have_scrnsaver_h_hdr = xyes; then
  21854. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  21855. echo "-- dynamic libXss -> $xss_lib"
  21856. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS \"$xss_lib\"" >>confdefs.h
  21857. definitely_enable_video_x11_scrnsaver=yes
  21858. else
  21859. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  21860. printf %s "checking for XScreenSaverSuspend in -lXss... " >&6; }
  21861. if test ${ac_cv_lib_Xss_XScreenSaverSuspend+y}
  21862. then :
  21863. printf %s "(cached) " >&6
  21864. else $as_nop
  21865. ac_check_lib_save_LIBS=$LIBS
  21866. LIBS="-lXss $LIBS"
  21867. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21868. /* end confdefs.h. */
  21869. /* Override any GCC internal prototype to avoid an error.
  21870. Use char because int might match the return type of a GCC
  21871. builtin and then its argument prototype would still apply. */
  21872. char XScreenSaverSuspend ();
  21873. int
  21874. main (void)
  21875. {
  21876. return XScreenSaverSuspend ();
  21877. ;
  21878. return 0;
  21879. }
  21880. _ACEOF
  21881. if ac_fn_c_try_link "$LINENO"
  21882. then :
  21883. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  21884. else $as_nop
  21885. ac_cv_lib_Xss_XScreenSaverSuspend=no
  21886. fi
  21887. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21888. conftest$ac_exeext conftest.$ac_ext
  21889. LIBS=$ac_check_lib_save_LIBS
  21890. fi
  21891. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  21892. printf "%s\n" "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  21893. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes
  21894. then :
  21895. have_xss_lib=yes
  21896. fi
  21897. if test x$have_xss_lib = xyes ; then
  21898. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  21899. definitely_enable_video_x11_scrnsaver=yes
  21900. fi
  21901. fi
  21902. fi
  21903. fi
  21904. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  21905. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  21906. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  21907. fi
  21908. # Check whether --enable-video-x11-xshape was given.
  21909. if test ${enable_video_x11_xshape+y}
  21910. then :
  21911. enableval=$enable_video_x11_xshape;
  21912. else $as_nop
  21913. enable_video_x11_xshape=yes
  21914. fi
  21915. if test x$enable_video_x11_xshape = xyes; then
  21916. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  21917. "
  21918. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes
  21919. then :
  21920. have_shape_h_hdr=yes
  21921. else $as_nop
  21922. have_shape_h_hdr=no
  21923. fi
  21924. if test x$have_shape_h_hdr = xyes; then
  21925. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  21926. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  21927. fi
  21928. fi
  21929. fi
  21930. fi
  21931. if test x$have_x != xyes; then
  21932. # Prevent Mesa from including X11 headers
  21933. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  21934. fi
  21935. }
  21936. CheckVivanteVideo()
  21937. {
  21938. # Check whether --enable-video-vivante was given.
  21939. if test ${enable_video_vivante+y}
  21940. then :
  21941. enableval=$enable_video_vivante;
  21942. else $as_nop
  21943. enable_video_vivante=yes
  21944. fi
  21945. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  21946. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  21947. printf %s "checking for Vivante VDK API... " >&6; }
  21948. have_vivante_vdk=no
  21949. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21950. /* end confdefs.h. */
  21951. #define LINUX
  21952. #define EGL_API_FB
  21953. #include <gc_vdk.h>
  21954. int
  21955. main (void)
  21956. {
  21957. ;
  21958. return 0;
  21959. }
  21960. _ACEOF
  21961. if ac_fn_c_try_compile "$LINENO"
  21962. then :
  21963. have_vivante_vdk=yes
  21964. fi
  21965. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21966. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  21967. printf "%s\n" "$have_vivante_vdk" >&6; }
  21968. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  21969. printf %s "checking for Vivante FB API... " >&6; }
  21970. have_vivante_egl=no
  21971. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21972. /* end confdefs.h. */
  21973. #define LINUX
  21974. #define EGL_API_FB
  21975. #include <EGL/eglvivante.h>
  21976. int
  21977. main (void)
  21978. {
  21979. ;
  21980. return 0;
  21981. }
  21982. _ACEOF
  21983. if ac_fn_c_try_compile "$LINENO"
  21984. then :
  21985. have_vivante_egl=yes
  21986. fi
  21987. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21988. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  21989. printf "%s\n" "$have_vivante_egl" >&6; }
  21990. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  21991. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  21992. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  21993. if test x$have_vivante_vdk = xyes; then
  21994. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  21995. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  21996. fi
  21997. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  21998. SUMMARY_video="${SUMMARY_video} vivante"
  21999. have_video=yes
  22000. fi
  22001. fi
  22002. }
  22003. CheckHaikuVideo()
  22004. {
  22005. if test x$enable_video = xyes; then
  22006. printf "%s\n" "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  22007. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  22008. have_video=yes
  22009. SUMMARY_video="${SUMMARY_video} haiku"
  22010. fi
  22011. }
  22012. CheckCOCOA()
  22013. {
  22014. # Check whether --enable-video-cocoa was given.
  22015. if test ${enable_video_cocoa+y}
  22016. then :
  22017. enableval=$enable_video_cocoa;
  22018. else $as_nop
  22019. enable_video_cocoa=yes
  22020. fi
  22021. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  22022. save_CFLAGS="$CFLAGS"
  22023. CFLAGS="$CFLAGS -x objective-c"
  22024. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  22025. printf %s "checking for Cocoa framework... " >&6; }
  22026. have_cocoa=no
  22027. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22028. /* end confdefs.h. */
  22029. #import <Cocoa/Cocoa.h>
  22030. int
  22031. main (void)
  22032. {
  22033. ;
  22034. return 0;
  22035. }
  22036. _ACEOF
  22037. if ac_fn_c_try_compile "$LINENO"
  22038. then :
  22039. have_cocoa=yes
  22040. fi
  22041. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22042. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  22043. printf "%s\n" "$have_cocoa" >&6; }
  22044. CFLAGS="$save_CFLAGS"
  22045. if test x$have_cocoa = xyes; then
  22046. printf "%s\n" "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  22047. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  22048. SUMMARY_video="${SUMMARY_video} cocoa"
  22049. have_video=yes
  22050. fi
  22051. fi
  22052. }
  22053. CheckMETAL()
  22054. {
  22055. # Check whether --enable-video-metal was given.
  22056. if test ${enable_video_metal+y}
  22057. then :
  22058. enableval=$enable_video_metal;
  22059. else $as_nop
  22060. enable_video_metal=yes
  22061. fi
  22062. # Check whether --enable-render-metal was given.
  22063. if test ${enable_render_metal+y}
  22064. then :
  22065. enableval=$enable_render_metal;
  22066. else $as_nop
  22067. enable_render_metal=yes
  22068. fi
  22069. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  22070. save_CFLAGS="$CFLAGS"
  22071. CFLAGS="$CFLAGS -x objective-c"
  22072. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  22073. printf %s "checking for Metal framework... " >&6; }
  22074. have_metal=no
  22075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22076. /* end confdefs.h. */
  22077. #import <Cocoa/Cocoa.h>
  22078. #import <Metal/Metal.h>
  22079. #import <QuartzCore/CAMetalLayer.h>
  22080. #if TARGET_CPU_X86
  22081. #error Metal doesn't work on this configuration
  22082. #endif
  22083. int
  22084. main (void)
  22085. {
  22086. ;
  22087. return 0;
  22088. }
  22089. _ACEOF
  22090. if ac_fn_c_try_compile "$LINENO"
  22091. then :
  22092. have_metal=yes
  22093. fi
  22094. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22095. CFLAGS="$save_CFLAGS"
  22096. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  22097. printf "%s\n" "$have_metal" >&6; }
  22098. if test x$have_metal = xyes; then
  22099. printf "%s\n" "#define SDL_VIDEO_METAL 1" >>confdefs.h
  22100. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  22101. printf "%s\n" "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  22102. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  22103. fi
  22104. SUMMARY_video="${SUMMARY_video} metal"
  22105. else
  22106. enable_video_metal=no
  22107. enable_render_metal=no
  22108. fi
  22109. fi
  22110. }
  22111. CheckDirectFB()
  22112. {
  22113. # Check whether --enable-video-directfb was given.
  22114. if test ${enable_video_directfb+y}
  22115. then :
  22116. enableval=$enable_video_directfb;
  22117. else $as_nop
  22118. enable_video_directfb=no
  22119. fi
  22120. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  22121. pkg_failed=no
  22122. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directfb >= 1.0.0" >&5
  22123. printf %s "checking for directfb >= 1.0.0... " >&6; }
  22124. if test -n "$DIRECTFB_CFLAGS"; then
  22125. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  22126. elif test -n "$PKG_CONFIG"; then
  22127. if test -n "$PKG_CONFIG" && \
  22128. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  22129. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  22130. ac_status=$?
  22131. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22132. test $ac_status = 0; }; then
  22133. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  22134. test "x$?" != "x0" && pkg_failed=yes
  22135. else
  22136. pkg_failed=yes
  22137. fi
  22138. else
  22139. pkg_failed=untried
  22140. fi
  22141. if test -n "$DIRECTFB_LIBS"; then
  22142. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  22143. elif test -n "$PKG_CONFIG"; then
  22144. if test -n "$PKG_CONFIG" && \
  22145. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  22146. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  22147. ac_status=$?
  22148. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22149. test $ac_status = 0; }; then
  22150. pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
  22151. test "x$?" != "x0" && pkg_failed=yes
  22152. else
  22153. pkg_failed=yes
  22154. fi
  22155. else
  22156. pkg_failed=untried
  22157. fi
  22158. if test $pkg_failed = yes; then
  22159. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22160. printf "%s\n" "no" >&6; }
  22161. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22162. _pkg_short_errors_supported=yes
  22163. else
  22164. _pkg_short_errors_supported=no
  22165. fi
  22166. if test $_pkg_short_errors_supported = yes; then
  22167. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  22168. else
  22169. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  22170. fi
  22171. # Put the nasty error message in config.log where it belongs
  22172. echo "$DIRECTFB_PKG_ERRORS" >&5
  22173. video_directfb=no
  22174. elif test $pkg_failed = untried; then
  22175. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22176. printf "%s\n" "no" >&6; }
  22177. video_directfb=no
  22178. else
  22179. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  22180. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  22181. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22182. printf "%s\n" "yes" >&6; }
  22183. video_directfb=yes
  22184. fi
  22185. if test x$video_directfb = xyes; then
  22186. # SuSE 11.1 installs directfb-config without directfb-devel
  22187. save_CPPFLAGS="$CPPFLAGS"
  22188. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  22189. ac_fn_c_check_header_compile "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  22190. if test "x$ac_cv_header_directfb_h" = xyes
  22191. then :
  22192. have_directfb_hdr=yes
  22193. else $as_nop
  22194. have_directfb_hdr=no
  22195. fi
  22196. CPPFLAGS="$save_CPPFLAGS"
  22197. video_directfb=$have_directfb_hdr
  22198. fi
  22199. if test x$video_directfb = xyes; then
  22200. # Check whether --enable-directfb-shared was given.
  22201. if test ${enable_directfb_shared+y}
  22202. then :
  22203. enableval=$enable_directfb_shared;
  22204. else $as_nop
  22205. enable_directfb_shared=yes
  22206. fi
  22207. printf "%s\n" "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  22208. printf "%s\n" "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  22209. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  22210. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  22211. directfb_shared=no
  22212. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  22213. if test x$have_loadso != xyes && \
  22214. test x$enable_directfb_shared = xyes; then
  22215. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  22216. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  22217. fi
  22218. if test x$have_loadso = xyes && \
  22219. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  22220. directfb_shared=yes
  22221. echo "-- dynamic libdirectfb -> $directfb_lib"
  22222. printf "%s\n" "#define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC \"$directfb_lib\"" >>confdefs.h
  22223. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  22224. else
  22225. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  22226. SUMMARY_video="${SUMMARY_video} directfb"
  22227. fi
  22228. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  22229. have_video=yes
  22230. fi
  22231. fi
  22232. }
  22233. CheckKMSDRM()
  22234. {
  22235. # Check whether --enable-video-kmsdrm was given.
  22236. if test ${enable_video_kmsdrm+y}
  22237. then :
  22238. enableval=$enable_video_kmsdrm;
  22239. else $as_nop
  22240. enable_video_kmsdrm=yes
  22241. fi
  22242. if test x$enable_video = xyes && \
  22243. test x$enable_video_kmsdrm = xyes && \
  22244. test x$video_opengl_egl = xyes; then
  22245. video_kmsdrm=no
  22246. pkg_failed=no
  22247. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdrm >= 1.4.82" >&5
  22248. printf %s "checking for libdrm >= 1.4.82... " >&6; }
  22249. if test -n "$LIBDRM_CFLAGS"; then
  22250. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  22251. elif test -n "$PKG_CONFIG"; then
  22252. if test -n "$PKG_CONFIG" && \
  22253. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  22254. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  22255. ac_status=$?
  22256. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22257. test $ac_status = 0; }; then
  22258. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 1.4.82" 2>/dev/null`
  22259. test "x$?" != "x0" && pkg_failed=yes
  22260. else
  22261. pkg_failed=yes
  22262. fi
  22263. else
  22264. pkg_failed=untried
  22265. fi
  22266. if test -n "$LIBDRM_LIBS"; then
  22267. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  22268. elif test -n "$PKG_CONFIG"; then
  22269. if test -n "$PKG_CONFIG" && \
  22270. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  22271. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  22272. ac_status=$?
  22273. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22274. test $ac_status = 0; }; then
  22275. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 1.4.82" 2>/dev/null`
  22276. test "x$?" != "x0" && pkg_failed=yes
  22277. else
  22278. pkg_failed=yes
  22279. fi
  22280. else
  22281. pkg_failed=untried
  22282. fi
  22283. if test $pkg_failed = yes; then
  22284. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22285. printf "%s\n" "no" >&6; }
  22286. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22287. _pkg_short_errors_supported=yes
  22288. else
  22289. _pkg_short_errors_supported=no
  22290. fi
  22291. if test $_pkg_short_errors_supported = yes; then
  22292. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  22293. else
  22294. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  22295. fi
  22296. # Put the nasty error message in config.log where it belongs
  22297. echo "$LIBDRM_PKG_ERRORS" >&5
  22298. libdrm_avail=no
  22299. elif test $pkg_failed = untried; then
  22300. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22301. printf "%s\n" "no" >&6; }
  22302. libdrm_avail=no
  22303. else
  22304. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  22305. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  22306. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22307. printf "%s\n" "yes" >&6; }
  22308. libdrm_avail=yes
  22309. fi
  22310. pkg_failed=no
  22311. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gbm >= 11.1.0" >&5
  22312. printf %s "checking for gbm >= 11.1.0... " >&6; }
  22313. if test -n "$LIBGBM_CFLAGS"; then
  22314. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  22315. elif test -n "$PKG_CONFIG"; then
  22316. if test -n "$PKG_CONFIG" && \
  22317. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  22318. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  22319. ac_status=$?
  22320. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22321. test $ac_status = 0; }; then
  22322. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 11.1.0" 2>/dev/null`
  22323. test "x$?" != "x0" && pkg_failed=yes
  22324. else
  22325. pkg_failed=yes
  22326. fi
  22327. else
  22328. pkg_failed=untried
  22329. fi
  22330. if test -n "$LIBGBM_LIBS"; then
  22331. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  22332. elif test -n "$PKG_CONFIG"; then
  22333. if test -n "$PKG_CONFIG" && \
  22334. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  22335. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  22336. ac_status=$?
  22337. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22338. test $ac_status = 0; }; then
  22339. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 11.1.0" 2>/dev/null`
  22340. test "x$?" != "x0" && pkg_failed=yes
  22341. else
  22342. pkg_failed=yes
  22343. fi
  22344. else
  22345. pkg_failed=untried
  22346. fi
  22347. if test $pkg_failed = yes; then
  22348. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22349. printf "%s\n" "no" >&6; }
  22350. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22351. _pkg_short_errors_supported=yes
  22352. else
  22353. _pkg_short_errors_supported=no
  22354. fi
  22355. if test $_pkg_short_errors_supported = yes; then
  22356. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  22357. else
  22358. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  22359. fi
  22360. # Put the nasty error message in config.log where it belongs
  22361. echo "$LIBGBM_PKG_ERRORS" >&5
  22362. libgbm_avail=no
  22363. elif test $pkg_failed = untried; then
  22364. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22365. printf "%s\n" "no" >&6; }
  22366. libgbm_avail=no
  22367. else
  22368. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  22369. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  22370. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22371. printf "%s\n" "yes" >&6; }
  22372. libgbm_avail=yes
  22373. fi
  22374. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  22375. video_kmsdrm=yes
  22376. fi
  22377. if test x$video_kmsdrm = xyes; then
  22378. # Check whether --enable-kmsdrm-shared was given.
  22379. if test ${enable_kmsdrm_shared+y}
  22380. then :
  22381. enableval=$enable_kmsdrm_shared;
  22382. else $as_nop
  22383. enable_kmsdrm_shared=yes
  22384. fi
  22385. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  22386. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  22387. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  22388. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  22389. printf %s "checking for kmsdrm dynamic loading support... " >&6; }
  22390. kmsdrm_shared=no
  22391. drm_lib=`find_lib "libdrm.so.*" "$LIBDRM_LIBS"`
  22392. gbm_lib=`find_lib "libgbm.so.*" "$LIBGBM_LIBS"`
  22393. if test x$have_loadso != xyes && \
  22394. test x$enable_kmsdrm_shared = xyes; then
  22395. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  22396. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  22397. fi
  22398. if test x$have_loadso = xyes && \
  22399. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  22400. kmsdrm_shared=yes
  22401. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC \"$drm_lib\"" >>confdefs.h
  22402. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM \"$gbm_lib\"" >>confdefs.h
  22403. printf "%s\n" "#define HAVE_KMSDRM_SHARED \"TRUE\"" >>confdefs.h
  22404. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  22405. else
  22406. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  22407. SUMMARY_video="${SUMMARY_video} kmsdrm"
  22408. fi
  22409. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  22410. printf "%s\n" "$kmsdrm_shared" >&6; }
  22411. if test x$kmsdrm_shared = xyes; then
  22412. echo "-- dynamic libdrm -> $drm_lib"
  22413. echo "-- dynamic libgbm -> $gbm_lib"
  22414. fi
  22415. have_video=yes
  22416. fi
  22417. fi
  22418. }
  22419. CheckDummyVideo()
  22420. {
  22421. # Check whether --enable-video-dummy was given.
  22422. if test ${enable_video_dummy+y}
  22423. then :
  22424. enableval=$enable_video_dummy;
  22425. else $as_nop
  22426. enable_video_dummy=yes
  22427. fi
  22428. if test x$enable_video_dummy = xyes; then
  22429. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  22430. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  22431. have_video=yes
  22432. SUMMARY_video="${SUMMARY_video} dummy"
  22433. fi
  22434. }
  22435. CheckOffscreenVideo()
  22436. {
  22437. # Check whether --enable-video-offscreen was given.
  22438. if test ${enable_video_offscreen+y}
  22439. then :
  22440. enableval=$enable_video_offscreen;
  22441. else $as_nop
  22442. enable_video_offscreen=yes
  22443. fi
  22444. if test x$enable_video_offscreen = xyes; then
  22445. printf "%s\n" "#define SDL_VIDEO_DRIVER_OFFSCREEN 1" >>confdefs.h
  22446. SOURCES="$SOURCES $srcdir/src/video/offscreen/*.c"
  22447. have_video=yes
  22448. SUMMARY_video="${SUMMARY_video} offscreen"
  22449. fi
  22450. }
  22451. CheckQNXVideo()
  22452. {
  22453. if test x$enable_video = xyes; then
  22454. printf "%s\n" "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  22455. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  22456. have_video=yes
  22457. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  22458. SUMMARY_video="${SUMMARY_video} qnx"
  22459. fi
  22460. }
  22461. CheckQNXAudio()
  22462. {
  22463. if test x$enable_audio = xyes; then
  22464. printf "%s\n" "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  22465. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  22466. have_audio=yes
  22467. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  22468. SUMMARY_audio="${SUMMARY_audio} qsa"
  22469. fi
  22470. }
  22471. # Check whether --enable-video-opengl was given.
  22472. if test ${enable_video_opengl+y}
  22473. then :
  22474. enableval=$enable_video_opengl;
  22475. else $as_nop
  22476. enable_video_opengl=yes
  22477. fi
  22478. CheckGLX()
  22479. {
  22480. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22481. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLX support" >&5
  22482. printf %s "checking for GLX support... " >&6; }
  22483. video_opengl_glx=no
  22484. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22485. /* end confdefs.h. */
  22486. #include <GL/glx.h>
  22487. int
  22488. main (void)
  22489. {
  22490. ;
  22491. return 0;
  22492. }
  22493. _ACEOF
  22494. if ac_fn_c_try_compile "$LINENO"
  22495. then :
  22496. video_opengl_glx=yes
  22497. fi
  22498. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22499. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_glx" >&5
  22500. printf "%s\n" "$video_opengl_glx" >&6; }
  22501. if test x$video_opengl_glx = xyes; then
  22502. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22503. printf "%s\n" "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  22504. fi
  22505. fi
  22506. }
  22507. # Check whether --enable-video-opengles was given.
  22508. if test ${enable_video_opengles+y}
  22509. then :
  22510. enableval=$enable_video_opengles;
  22511. else $as_nop
  22512. enable_video_opengles=yes
  22513. fi
  22514. # Check whether --enable-video-opengles1 was given.
  22515. if test ${enable_video_opengles1+y}
  22516. then :
  22517. enableval=$enable_video_opengles1;
  22518. else $as_nop
  22519. enable_video_opengles1=yes
  22520. fi
  22521. # Check whether --enable-video-opengles2 was given.
  22522. if test ${enable_video_opengles2+y}
  22523. then :
  22524. enableval=$enable_video_opengles2;
  22525. else $as_nop
  22526. enable_video_opengles2=yes
  22527. fi
  22528. CheckEGL()
  22529. {
  22530. if test x$enable_video = xyes -a x$enable_video_opengl = xyes || test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22531. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22532. printf %s "checking for EGL support... " >&6; }
  22533. video_opengl_egl=no
  22534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22535. /* end confdefs.h. */
  22536. #define LINUX
  22537. #define EGL_API_FB
  22538. #define MESA_EGL_NO_X11_HEADERS
  22539. #define EGL_NO_X11
  22540. #include <EGL/egl.h>
  22541. #include <EGL/eglext.h>
  22542. int
  22543. main (void)
  22544. {
  22545. ;
  22546. return 0;
  22547. }
  22548. _ACEOF
  22549. if ac_fn_c_try_compile "$LINENO"
  22550. then :
  22551. video_opengl_egl=yes
  22552. fi
  22553. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22554. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22555. printf "%s\n" "$video_opengl_egl" >&6; }
  22556. if test x$video_opengl_egl = xyes; then
  22557. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22558. fi
  22559. fi
  22560. }
  22561. CheckOpenGL()
  22562. {
  22563. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22564. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL headers" >&5
  22565. printf %s "checking for OpenGL headers... " >&6; }
  22566. video_opengl=no
  22567. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22568. /* end confdefs.h. */
  22569. #include <GL/gl.h>
  22570. #include <GL/glext.h>
  22571. int
  22572. main (void)
  22573. {
  22574. ;
  22575. return 0;
  22576. }
  22577. _ACEOF
  22578. if ac_fn_c_try_compile "$LINENO"
  22579. then :
  22580. video_opengl=yes
  22581. fi
  22582. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22583. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  22584. printf "%s\n" "$video_opengl" >&6; }
  22585. if test x$video_opengl = xyes; then
  22586. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22587. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22588. SUMMARY_video="${SUMMARY_video} opengl"
  22589. fi
  22590. fi
  22591. }
  22592. CheckOpenGLES()
  22593. {
  22594. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22595. if test x$enable_video_opengles1 = xyes; then
  22596. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  22597. printf %s "checking for OpenGL ES v1 headers... " >&6; }
  22598. video_opengles_v1=no
  22599. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22600. /* end confdefs.h. */
  22601. #include <GLES/gl.h>
  22602. #include <GLES/glext.h>
  22603. int
  22604. main (void)
  22605. {
  22606. ;
  22607. return 0;
  22608. }
  22609. _ACEOF
  22610. if ac_fn_c_try_compile "$LINENO"
  22611. then :
  22612. video_opengles_v1=yes
  22613. fi
  22614. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22615. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  22616. printf "%s\n" "$video_opengles_v1" >&6; }
  22617. if test x$video_opengles_v1 = xyes; then
  22618. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  22619. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  22620. SUMMARY_video="${SUMMARY_video} opengl_es1"
  22621. fi
  22622. fi
  22623. if test x$enable_video_opengles2 = xyes; then
  22624. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22625. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22626. video_opengles_v2=no
  22627. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22628. /* end confdefs.h. */
  22629. #include <GLES2/gl2.h>
  22630. #include <GLES2/gl2ext.h>
  22631. int
  22632. main (void)
  22633. {
  22634. ;
  22635. return 0;
  22636. }
  22637. _ACEOF
  22638. if ac_fn_c_try_compile "$LINENO"
  22639. then :
  22640. video_opengles_v2=yes
  22641. fi
  22642. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22643. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22644. printf "%s\n" "$video_opengles_v2" >&6; }
  22645. if test x$video_opengles_v2 = xyes; then
  22646. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22647. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22648. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22649. fi
  22650. fi
  22651. fi
  22652. }
  22653. CheckWINDOWSGL()
  22654. {
  22655. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22656. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22657. printf "%s\n" "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  22658. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22659. SUMMARY_video="${SUMMARY_video} opengl"
  22660. fi
  22661. }
  22662. CheckWINDOWSGLES()
  22663. {
  22664. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22665. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22666. printf %s "checking for EGL support... " >&6; }
  22667. video_opengl_egl=no
  22668. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22669. /* end confdefs.h. */
  22670. #include <EGL/egl.h>
  22671. int
  22672. main (void)
  22673. {
  22674. ;
  22675. return 0;
  22676. }
  22677. _ACEOF
  22678. if ac_fn_c_try_compile "$LINENO"
  22679. then :
  22680. video_opengl_egl=yes
  22681. fi
  22682. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22683. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22684. printf "%s\n" "$video_opengl_egl" >&6; }
  22685. if test x$video_opengl_egl = xyes; then
  22686. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22687. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22688. SUMMARY_video="${SUMMARY_video} opengl_es1"
  22689. fi
  22690. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22691. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22692. video_opengles_v2=no
  22693. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22694. /* end confdefs.h. */
  22695. #include <GLES2/gl2.h>
  22696. #include <GLES2/gl2ext.h>
  22697. int
  22698. main (void)
  22699. {
  22700. ;
  22701. return 0;
  22702. }
  22703. _ACEOF
  22704. if ac_fn_c_try_compile "$LINENO"
  22705. then :
  22706. video_opengles_v2=yes
  22707. fi
  22708. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22709. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22710. printf "%s\n" "$video_opengles_v2" >&6; }
  22711. if test x$video_opengles_v2 = xyes; then
  22712. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22713. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22714. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22715. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22716. fi
  22717. fi
  22718. }
  22719. CheckHaikuGL()
  22720. {
  22721. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22722. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22723. printf "%s\n" "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  22724. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22725. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  22726. SUMMARY_video="${SUMMARY_video} opengl"
  22727. fi
  22728. }
  22729. CheckMacGL()
  22730. {
  22731. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22732. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22733. printf "%s\n" "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  22734. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22735. SUMMARY_video="${SUMMARY_video} opengl"
  22736. fi
  22737. }
  22738. CheckMacGLES()
  22739. {
  22740. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22741. video_opengl_egl=yes
  22742. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22743. video_opengles_v2=yes
  22744. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22745. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22746. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22747. fi
  22748. }
  22749. CheckEmscriptenGLES()
  22750. {
  22751. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22752. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22753. printf %s "checking for EGL support... " >&6; }
  22754. video_opengl_egl=no
  22755. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22756. /* end confdefs.h. */
  22757. #include <EGL/egl.h>
  22758. int
  22759. main (void)
  22760. {
  22761. ;
  22762. return 0;
  22763. }
  22764. _ACEOF
  22765. if ac_fn_c_try_compile "$LINENO"
  22766. then :
  22767. video_opengl_egl=yes
  22768. fi
  22769. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22770. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22771. printf "%s\n" "$video_opengl_egl" >&6; }
  22772. if test x$video_opengl_egl = xyes; then
  22773. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22774. fi
  22775. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22776. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22777. video_opengles_v2=no
  22778. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22779. /* end confdefs.h. */
  22780. #include <GLES2/gl2.h>
  22781. #include <GLES2/gl2ext.h>
  22782. int
  22783. main (void)
  22784. {
  22785. ;
  22786. return 0;
  22787. }
  22788. _ACEOF
  22789. if ac_fn_c_try_compile "$LINENO"
  22790. then :
  22791. video_opengles_v2=yes
  22792. fi
  22793. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22794. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22795. printf "%s\n" "$video_opengles_v2" >&6; }
  22796. if test x$video_opengles_v2 = xyes; then
  22797. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22798. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22799. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22800. fi
  22801. fi
  22802. }
  22803. # Check whether --enable-video-vulkan was given.
  22804. if test ${enable_video_vulkan+y}
  22805. then :
  22806. enableval=$enable_video_vulkan;
  22807. else $as_nop
  22808. enable_video_vulkan=yes
  22809. fi
  22810. CheckVulkan()
  22811. {
  22812. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  22813. case "$host" in
  22814. *-*-android*)
  22815. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22816. /* end confdefs.h. */
  22817. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  22818. #error Vulkan doesn't work on this configuration
  22819. #endif
  22820. int
  22821. main (void)
  22822. {
  22823. ;
  22824. return 0;
  22825. }
  22826. _ACEOF
  22827. if ac_fn_c_try_compile "$LINENO"
  22828. then :
  22829. else $as_nop
  22830. enable_video_vulkan=no
  22831. fi
  22832. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22833. ;;
  22834. *-*-darwin*)
  22835. save_CFLAGS="$CFLAGS"
  22836. CFLAGS="$CFLAGS -x objective-c"
  22837. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22838. /* end confdefs.h. */
  22839. #include <Cocoa/Cocoa.h>
  22840. #include <Metal/Metal.h>
  22841. #include <QuartzCore/CAMetalLayer.h>
  22842. #if TARGET_CPU_X86
  22843. #error Vulkan doesn't work on this configuration
  22844. #endif
  22845. int
  22846. main (void)
  22847. {
  22848. ;
  22849. return 0;
  22850. }
  22851. _ACEOF
  22852. if ac_fn_c_try_compile "$LINENO"
  22853. then :
  22854. else $as_nop
  22855. enable_video_vulkan=no
  22856. fi
  22857. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22858. CFLAGS="$save_CFLAGS"
  22859. ;;
  22860. *)
  22861. ;;
  22862. esac
  22863. if test x$enable_video_vulkan = xno; then
  22864. # For reasons I am totally unable to see, I get an undefined macro error if
  22865. # I put this in the AC_TRY_COMPILE.
  22866. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  22867. printf "%s\n" "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  22868. fi
  22869. fi
  22870. if test x$have_loadso != xyes; then
  22871. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan support is available, but disabled because there's no loadso." >&5
  22872. printf "%s\n" "$as_me: WARNING: Vulkan support is available, but disabled because there's no loadso." >&2;}
  22873. enable_video_vulkan=no
  22874. fi
  22875. if test x$enable_video_vulkan = xyes; then
  22876. printf "%s\n" "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  22877. SUMMARY_video="${SUMMARY_video} vulkan"
  22878. fi
  22879. }
  22880. CheckInputEvents()
  22881. {
  22882. ac_fn_c_check_header_compile "$LINENO" "linux/input.h" "ac_cv_header_linux_input_h" "$ac_includes_default"
  22883. if test "x$ac_cv_header_linux_input_h" = xyes
  22884. then :
  22885. printf "%s\n" "#define HAVE_LINUX_INPUT_H 1" >>confdefs.h
  22886. fi
  22887. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  22888. printf %s "checking for Linux 2.4 unified input interface... " >&6; }
  22889. use_input_events=no
  22890. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22891. /* end confdefs.h. */
  22892. #include <linux/input.h>
  22893. int
  22894. main (void)
  22895. {
  22896. #ifndef EVIOCGNAME
  22897. #error EVIOCGNAME() ioctl not available
  22898. #endif
  22899. ;
  22900. return 0;
  22901. }
  22902. _ACEOF
  22903. if ac_fn_c_try_compile "$LINENO"
  22904. then :
  22905. use_input_events=yes
  22906. fi
  22907. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22908. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  22909. printf "%s\n" "$use_input_events" >&6; }
  22910. if test x$use_input_events = xyes; then
  22911. printf "%s\n" "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  22912. SUMMARY_input="${SUMMARY_input} linuxev"
  22913. fi
  22914. }
  22915. CheckInputKD()
  22916. {
  22917. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  22918. printf %s "checking for Linux kd.h... " >&6; }
  22919. use_input_kd=no
  22920. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22921. /* end confdefs.h. */
  22922. #include <linux/kd.h>
  22923. #include <linux/keyboard.h>
  22924. #include <sys/ioctl.h>
  22925. int
  22926. main (void)
  22927. {
  22928. struct kbentry kbe;
  22929. kbe.kb_table = KG_CTRL;
  22930. ioctl(0, KDGKBENT, &kbe);
  22931. ;
  22932. return 0;
  22933. }
  22934. _ACEOF
  22935. if ac_fn_c_try_compile "$LINENO"
  22936. then :
  22937. use_input_kd=yes
  22938. fi
  22939. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22940. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  22941. printf "%s\n" "$use_input_kd" >&6; }
  22942. if test x$use_input_kd = xyes; then
  22943. printf "%s\n" "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  22944. SUMMARY_input="${SUMMARY_input} linuxkd"
  22945. fi
  22946. }
  22947. CheckInputKBIO()
  22948. {
  22949. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FreeBSD kbio.h" >&5
  22950. printf %s "checking for FreeBSD kbio.h... " >&6; }
  22951. use_input_kbio=no
  22952. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22953. /* end confdefs.h. */
  22954. #include <sys/kbio.h>
  22955. #include <sys/ioctl.h>
  22956. int
  22957. main (void)
  22958. {
  22959. accentmap_t accTable;
  22960. ioctl(0, KDENABIO, 1);
  22961. ;
  22962. return 0;
  22963. }
  22964. _ACEOF
  22965. if ac_fn_c_try_compile "$LINENO"
  22966. then :
  22967. use_input_kbio=yes
  22968. fi
  22969. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22970. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kbio" >&5
  22971. printf "%s\n" "$use_input_kbio" >&6; }
  22972. if test x$use_input_kbio = xyes; then
  22973. printf "%s\n" "#define SDL_INPUT_FBSDKBIO 1" >>confdefs.h
  22974. SUMMARY_input="${SUMMARY_input} fbsdkbio"
  22975. fi
  22976. }
  22977. CheckInputWSCONS()
  22978. {
  22979. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenBSD wscons" >&5
  22980. printf %s "checking for OpenBSD wscons... " >&6; }
  22981. use_input_wscons=no
  22982. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22983. /* end confdefs.h. */
  22984. #include <sys/time.h>
  22985. #include <dev/wscons/wsconsio.h>
  22986. #include <dev/wscons/wsksymdef.h>
  22987. #include <dev/wscons/wsksymvar.h>
  22988. #include <sys/ioctl.h>
  22989. int
  22990. main (void)
  22991. {
  22992. struct wskbd_map_data data;
  22993. ioctl(0, WSKBDIO_GETMAP, &data);
  22994. ;
  22995. return 0;
  22996. }
  22997. _ACEOF
  22998. if ac_fn_c_try_compile "$LINENO"
  22999. then :
  23000. use_input_wscons=yes
  23001. fi
  23002. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23003. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_wscons" >&5
  23004. printf "%s\n" "$use_input_wscons" >&6; }
  23005. if test x$use_input_wscons = xyes; then
  23006. printf "%s\n" "#define SDL_INPUT_WSCONS 1" >>confdefs.h
  23007. SUMMARY_input="${SUMMARY_input} wscons"
  23008. fi
  23009. }
  23010. CheckLibUDev()
  23011. {
  23012. # Check whether --enable-libudev was given.
  23013. if test ${enable_libudev+y}
  23014. then :
  23015. enableval=$enable_libudev;
  23016. else $as_nop
  23017. enable_libudev=yes
  23018. fi
  23019. if test x$enable_libudev = xyes; then
  23020. ac_fn_c_check_header_compile "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  23021. if test "x$ac_cv_header_libudev_h" = xyes
  23022. then :
  23023. have_libudev_h_hdr=yes
  23024. else $as_nop
  23025. have_libudev_h_hdr=no
  23026. fi
  23027. if test x$have_libudev_h_hdr = xyes; then
  23028. printf "%s\n" "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  23029. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  23030. if test x$udev_lib != x; then
  23031. echo "-- dynamic udev -> $udev_lib"
  23032. printf "%s\n" "#define SDL_UDEV_DYNAMIC \"$udev_lib\"" >>confdefs.h
  23033. fi
  23034. fi
  23035. fi
  23036. }
  23037. CheckDBus()
  23038. {
  23039. # Check whether --enable-dbus was given.
  23040. if test ${enable_dbus+y}
  23041. then :
  23042. enableval=$enable_dbus;
  23043. else $as_nop
  23044. enable_dbus=yes
  23045. fi
  23046. if test x$enable_dbus = xyes; then
  23047. pkg_failed=no
  23048. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbus-1" >&5
  23049. printf %s "checking for dbus-1... " >&6; }
  23050. if test -n "$DBUS_CFLAGS"; then
  23051. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  23052. elif test -n "$PKG_CONFIG"; then
  23053. if test -n "$PKG_CONFIG" && \
  23054. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  23055. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  23056. ac_status=$?
  23057. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23058. test $ac_status = 0; }; then
  23059. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  23060. test "x$?" != "x0" && pkg_failed=yes
  23061. else
  23062. pkg_failed=yes
  23063. fi
  23064. else
  23065. pkg_failed=untried
  23066. fi
  23067. if test -n "$DBUS_LIBS"; then
  23068. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  23069. elif test -n "$PKG_CONFIG"; then
  23070. if test -n "$PKG_CONFIG" && \
  23071. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  23072. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  23073. ac_status=$?
  23074. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23075. test $ac_status = 0; }; then
  23076. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  23077. test "x$?" != "x0" && pkg_failed=yes
  23078. else
  23079. pkg_failed=yes
  23080. fi
  23081. else
  23082. pkg_failed=untried
  23083. fi
  23084. if test $pkg_failed = yes; then
  23085. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23086. printf "%s\n" "no" >&6; }
  23087. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  23088. _pkg_short_errors_supported=yes
  23089. else
  23090. _pkg_short_errors_supported=no
  23091. fi
  23092. if test $_pkg_short_errors_supported = yes; then
  23093. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
  23094. else
  23095. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
  23096. fi
  23097. # Put the nasty error message in config.log where it belongs
  23098. echo "$DBUS_PKG_ERRORS" >&5
  23099. have_dbus=no
  23100. elif test $pkg_failed = untried; then
  23101. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23102. printf "%s\n" "no" >&6; }
  23103. have_dbus=no
  23104. else
  23105. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  23106. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  23107. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23108. printf "%s\n" "yes" >&6; }
  23109. have_dbus=yes
  23110. fi
  23111. save_CPPFLAGS="$CPPFLAGS"
  23112. CPPFLAGS="$save_CPPFLAGS $DBUS_CFLAGS"
  23113. ac_fn_c_check_header_compile "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  23114. if test "x$ac_cv_header_dbus_dbus_h" = xyes
  23115. then :
  23116. have_dbus_dbus_h_hdr=yes
  23117. else $as_nop
  23118. have_dbus_dbus_h_hdr=no
  23119. fi
  23120. CPPFLAGS="$save_CPPFLAGS"
  23121. if test x$have_dbus_dbus_h_hdr = xyes; then
  23122. printf "%s\n" "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  23123. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  23124. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  23125. fi
  23126. fi
  23127. }
  23128. CheckIME()
  23129. {
  23130. # Check whether --enable-ime was given.
  23131. if test ${enable_ime+y}
  23132. then :
  23133. enableval=$enable_ime;
  23134. else $as_nop
  23135. enable_ime=yes
  23136. fi
  23137. if test x$enable_ime = xyes; then
  23138. printf "%s\n" "#define SDL_USE_IME 1" >>confdefs.h
  23139. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  23140. fi
  23141. }
  23142. CheckInotify()
  23143. {
  23144. save_LIBS="$LIBS"
  23145. case "$host" in
  23146. *-*-freebsd*|*-*dragonfly*) LIBS="$LIBS -linotify"
  23147. ;;
  23148. esac
  23149. for ac_header in sys/inotify.h
  23150. do :
  23151. ac_fn_c_check_header_compile "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  23152. if test "x$ac_cv_header_sys_inotify_h" = xyes
  23153. then :
  23154. printf "%s\n" "#define HAVE_SYS_INOTIFY_H 1" >>confdefs.h
  23155. have_inotify_inotify_h_hdr=yes
  23156. fi
  23157. done
  23158. for ac_func in inotify_init
  23159. do :
  23160. ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
  23161. if test "x$ac_cv_func_inotify_init" = xyes
  23162. then :
  23163. printf "%s\n" "#define HAVE_INOTIFY_INIT 1" >>confdefs.h
  23164. have_inotify=yes
  23165. fi
  23166. done
  23167. ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
  23168. if test "x$ac_cv_func_inotify_init1" = xyes
  23169. then :
  23170. printf "%s\n" "#define HAVE_INOTIFY_INIT1 1" >>confdefs.h
  23171. fi
  23172. if test x$have_inotify_inotify_h_hdr = xyes -a x$have_inotify = xyes; then
  23173. printf "%s\n" "#define HAVE_INOTIFY 1" >>confdefs.h
  23174. case "$host" in
  23175. *-*-freebsd*|*-*-dragonfly*)
  23176. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -linotify"
  23177. ;;
  23178. esac
  23179. fi
  23180. LIBS="$save_LIBS"
  23181. }
  23182. CheckIBus()
  23183. {
  23184. # Check whether --enable-ibus was given.
  23185. if test ${enable_ibus+y}
  23186. then :
  23187. enableval=$enable_ibus;
  23188. else $as_nop
  23189. enable_ibus=yes
  23190. fi
  23191. if test x$enable_ibus = xyes; then
  23192. pkg_failed=no
  23193. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ibus-1.0" >&5
  23194. printf %s "checking for ibus-1.0... " >&6; }
  23195. if test -n "$IBUS_CFLAGS"; then
  23196. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  23197. elif test -n "$PKG_CONFIG"; then
  23198. if test -n "$PKG_CONFIG" && \
  23199. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  23200. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  23201. ac_status=$?
  23202. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23203. test $ac_status = 0; }; then
  23204. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  23205. test "x$?" != "x0" && pkg_failed=yes
  23206. else
  23207. pkg_failed=yes
  23208. fi
  23209. else
  23210. pkg_failed=untried
  23211. fi
  23212. if test -n "$IBUS_LIBS"; then
  23213. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  23214. elif test -n "$PKG_CONFIG"; then
  23215. if test -n "$PKG_CONFIG" && \
  23216. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  23217. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  23218. ac_status=$?
  23219. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23220. test $ac_status = 0; }; then
  23221. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  23222. test "x$?" != "x0" && pkg_failed=yes
  23223. else
  23224. pkg_failed=yes
  23225. fi
  23226. else
  23227. pkg_failed=untried
  23228. fi
  23229. if test $pkg_failed = yes; then
  23230. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23231. printf "%s\n" "no" >&6; }
  23232. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  23233. _pkg_short_errors_supported=yes
  23234. else
  23235. _pkg_short_errors_supported=no
  23236. fi
  23237. if test $_pkg_short_errors_supported = yes; then
  23238. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ibus-1.0" 2>&1`
  23239. else
  23240. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ibus-1.0" 2>&1`
  23241. fi
  23242. # Put the nasty error message in config.log where it belongs
  23243. echo "$IBUS_PKG_ERRORS" >&5
  23244. have_ibus=no
  23245. elif test $pkg_failed = untried; then
  23246. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23247. printf "%s\n" "no" >&6; }
  23248. have_ibus=no
  23249. else
  23250. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  23251. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  23252. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23253. printf "%s\n" "yes" >&6; }
  23254. have_ibus=yes
  23255. fi
  23256. save_CPPFLAGS="$CPPFLAGS"
  23257. CPPFLAGS="$save_CPPFLAGS $IBUS_CFLAGS"
  23258. ac_fn_c_check_header_compile "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  23259. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes
  23260. then :
  23261. have_ibus_ibus_h_hdr=yes
  23262. else $as_nop
  23263. have_ibus_ibus_h_hdr=no
  23264. fi
  23265. CPPFLAGS="$save_CPPFLAGS"
  23266. if test x$have_ibus_ibus_h_hdr = xyes; then
  23267. if test x$enable_ime != xyes; then
  23268. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  23269. printf "%s\n" "$as_me: WARNING: IME support is required for IBus." >&2;}
  23270. have_ibus_ibus_h_hdr=no
  23271. elif test x$enable_dbus != xyes; then
  23272. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  23273. printf "%s\n" "$as_me: WARNING: DBus support is required for IBus." >&2;}
  23274. have_ibus_ibus_h_hdr=no
  23275. elif test x$have_inotify_inotify_h_hdr != xyes; then
  23276. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  23277. printf "%s\n" "$as_me: WARNING: INotify support is required for IBus." >&2;}
  23278. have_ibus_ibus_h_hdr=no
  23279. else
  23280. printf "%s\n" "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  23281. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  23282. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  23283. fi
  23284. fi
  23285. fi
  23286. }
  23287. CheckFcitx()
  23288. {
  23289. # Check whether --enable-fcitx was given.
  23290. if test ${enable_fcitx+y}
  23291. then :
  23292. enableval=$enable_fcitx;
  23293. else $as_nop
  23294. enable_fcitx=yes
  23295. fi
  23296. if test x$enable_fcitx = xyes; then
  23297. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
  23298. printf %s "checking for fcitx support... " >&6; }
  23299. have_fcitx=no
  23300. if test x$enable_ime != xyes; then
  23301. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  23302. printf "%s\n" "$as_me: WARNING: IME support is required for fcitx." >&2;}
  23303. elif test x$have_dbus_dbus_h_hdr != xyes; then
  23304. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  23305. printf "%s\n" "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  23306. else
  23307. have_fcitx=yes
  23308. printf "%s\n" "#define HAVE_FCITX 1" >>confdefs.h
  23309. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  23310. fi
  23311. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
  23312. printf "%s\n" "$have_fcitx" >&6; }
  23313. fi
  23314. }
  23315. CheckJoystickMFI()
  23316. {
  23317. # Check whether --enable-joystick-mfi was given.
  23318. if test ${enable_joystick_mfi+y}
  23319. then :
  23320. enableval=$enable_joystick_mfi;
  23321. else $as_nop
  23322. enable_joystick_mfi=yes
  23323. fi
  23324. if test x$enable_joystick_mfi = xyes; then
  23325. save_CFLAGS="$CFLAGS"
  23326. save_LDFLAGS="$LDFLAGS"
  23327. CFLAGS="$CFLAGS -x objective-c -fobjc-weak"
  23328. LDFLAGS="$LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  23329. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GameController framework" >&5
  23330. printf %s "checking for GameController framework... " >&6; }
  23331. enable_joystick_mfi=no
  23332. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23333. /* end confdefs.h. */
  23334. #include <AvailabilityMacros.h>
  23335. #include <TargetConditionals.h>
  23336. #import <GameController/GameController.h>
  23337. int
  23338. main (void)
  23339. {
  23340. #if MAC_OS_X_VERSION_MIN_REQUIRED < 1080
  23341. #error GameController framework doesn't work on this configuration
  23342. #endif
  23343. #if TARGET_CPU_X86
  23344. #error GameController framework doesn't work on this configuration
  23345. #endif
  23346. ;
  23347. return 0;
  23348. }
  23349. _ACEOF
  23350. if ac_fn_c_try_link "$LINENO"
  23351. then :
  23352. enable_joystick_mfi=yes
  23353. fi
  23354. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23355. conftest$ac_exeext conftest.$ac_ext
  23356. CFLAGS="$save_CFLAGS"
  23357. LDFLAGS="$save_LDFLAGS"
  23358. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_joystick_mfi" >&5
  23359. printf "%s\n" "$enable_joystick_mfi" >&6; }
  23360. if test x$enable_joystick_mfi = xyes; then
  23361. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  23362. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-weak -Wno-unused-command-line-argument"
  23363. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  23364. fi
  23365. fi
  23366. }
  23367. CheckPTHREAD()
  23368. {
  23369. case "$host" in
  23370. *-*-emscripten*)
  23371. enable_pthreads_default=no
  23372. ;;
  23373. *)
  23374. enable_pthreads_default=yes
  23375. ;;
  23376. esac
  23377. # Check whether --enable-pthreads was given.
  23378. if test ${enable_pthreads+y}
  23379. then :
  23380. enableval=$enable_pthreads;
  23381. else $as_nop
  23382. enable_pthreads=maybe
  23383. fi
  23384. # Check whether --enable-pthread-sem was given.
  23385. if test ${enable_pthread_sem+y}
  23386. then :
  23387. enableval=$enable_pthread_sem;
  23388. else $as_nop
  23389. enable_pthread_sem=maybe
  23390. fi
  23391. if test x$enable_pthreads = xmaybe; then
  23392. enable_pthreads=$enable_pthreads_default
  23393. fi
  23394. if test x$enable_pthread_sem = xmaybe; then
  23395. enable_pthread_sem=$enable_pthreads
  23396. fi
  23397. case "$host" in
  23398. *-*-android*)
  23399. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23400. pthread_lib=""
  23401. ;;
  23402. *-*-linux*|*-*-uclinux*)
  23403. pthread_cflags="-D_REENTRANT"
  23404. pthread_lib="-lpthread"
  23405. ;;
  23406. *-*-bsdi*)
  23407. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23408. pthread_lib=""
  23409. ;;
  23410. *-*-darwin*)
  23411. pthread_cflags="-D_THREAD_SAFE"
  23412. # causes Carbon.p complaints?
  23413. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23414. ;;
  23415. *-*-freebsd*|*-*-dragonfly*)
  23416. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23417. pthread_lib="-pthread"
  23418. ;;
  23419. *-*-netbsd*)
  23420. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23421. pthread_lib="-lpthread"
  23422. ;;
  23423. *-*-openbsd*)
  23424. pthread_cflags="-D_REENTRANT"
  23425. pthread_lib="-lpthread"
  23426. ;;
  23427. *-*-solaris2.9)
  23428. # From Solaris 9+, posix4's preferred name is rt.
  23429. pthread_cflags="-D_REENTRANT"
  23430. pthread_lib="-lpthread -lrt"
  23431. ;;
  23432. *-*-solaris2.10)
  23433. # Solaris 10+ merged pthread into libc.
  23434. pthread_cflags="-D_REENTRANT"
  23435. pthread_lib="-lrt"
  23436. ;;
  23437. *-*-solaris*)
  23438. # Solaris 11+ merged rt into libc.
  23439. pthread_cflags="-D_REENTRANT"
  23440. pthread_lib=""
  23441. ;;
  23442. *-*-sysv5*)
  23443. pthread_cflags="-D_REENTRANT -Kthread"
  23444. pthread_lib=""
  23445. ;;
  23446. *-*-aix*)
  23447. pthread_cflags="-D_REENTRANT -mthreads"
  23448. pthread_lib="-lpthread"
  23449. ;;
  23450. *-*-hpux11*)
  23451. pthread_cflags="-D_REENTRANT"
  23452. pthread_lib="-L/usr/lib -lpthread"
  23453. ;;
  23454. *-*-haiku*)
  23455. pthread_cflags="-D_REENTRANT"
  23456. pthread_lib=""
  23457. ;;
  23458. *-*-nto*)
  23459. pthread_cflags="-D_REENTRANT"
  23460. pthread_lib=""
  23461. ;;
  23462. *-*-emscripten*)
  23463. pthread_cflags="-D_REENTRANT -pthread"
  23464. pthread_lib="-pthread"
  23465. ;;
  23466. *)
  23467. pthread_cflags="-D_REENTRANT"
  23468. pthread_lib="-lpthread"
  23469. ;;
  23470. esac
  23471. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  23472. # Save the original compiler flags and libraries
  23473. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  23474. # Add the pthread compiler flags and libraries
  23475. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  23476. # Check to see if we have pthread support on this system
  23477. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  23478. printf %s "checking for pthreads... " >&6; }
  23479. use_pthreads=no
  23480. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23481. /* end confdefs.h. */
  23482. #include <pthread.h>
  23483. int
  23484. main (void)
  23485. {
  23486. pthread_attr_t type;
  23487. pthread_attr_init(&type);
  23488. ;
  23489. return 0;
  23490. }
  23491. _ACEOF
  23492. if ac_fn_c_try_link "$LINENO"
  23493. then :
  23494. use_pthreads=yes
  23495. fi
  23496. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23497. conftest$ac_exeext conftest.$ac_ext
  23498. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  23499. printf "%s\n" "$use_pthreads" >&6; }
  23500. # Restore the compiler flags and libraries
  23501. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  23502. # Do futher testing if we have pthread support...
  23503. if test x$use_pthreads = xyes; then
  23504. printf "%s\n" "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  23505. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  23506. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  23507. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  23508. # Save the original compiler flags and libraries
  23509. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  23510. # Add the pthread compiler flags and libraries
  23511. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  23512. # Check to see if recursive mutexes are available
  23513. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  23514. printf %s "checking for recursive mutexes... " >&6; }
  23515. has_recursive_mutexes=no
  23516. if test x$has_recursive_mutexes = xno; then
  23517. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23518. /* end confdefs.h. */
  23519. #define _GNU_SOURCE 1
  23520. #include <pthread.h>
  23521. int
  23522. main (void)
  23523. {
  23524. pthread_mutexattr_t attr;
  23525. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  23526. ;
  23527. return 0;
  23528. }
  23529. _ACEOF
  23530. if ac_fn_c_try_link "$LINENO"
  23531. then :
  23532. has_recursive_mutexes=yes
  23533. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  23534. fi
  23535. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23536. conftest$ac_exeext conftest.$ac_ext
  23537. fi
  23538. if test x$has_recursive_mutexes = xno; then
  23539. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23540. /* end confdefs.h. */
  23541. #define _GNU_SOURCE 1
  23542. #include <pthread.h>
  23543. int
  23544. main (void)
  23545. {
  23546. pthread_mutexattr_t attr;
  23547. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  23548. ;
  23549. return 0;
  23550. }
  23551. _ACEOF
  23552. if ac_fn_c_try_link "$LINENO"
  23553. then :
  23554. has_recursive_mutexes=yes
  23555. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  23556. fi
  23557. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23558. conftest$ac_exeext conftest.$ac_ext
  23559. fi
  23560. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  23561. printf "%s\n" "$has_recursive_mutexes" >&6; }
  23562. # Check to see if pthread semaphore support is missing
  23563. if test x$enable_pthread_sem = xyes; then
  23564. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  23565. printf %s "checking for pthread semaphores... " >&6; }
  23566. have_pthread_sem=no
  23567. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23568. /* end confdefs.h. */
  23569. #include <pthread.h>
  23570. #include <semaphore.h>
  23571. int
  23572. main (void)
  23573. {
  23574. ;
  23575. return 0;
  23576. }
  23577. _ACEOF
  23578. if ac_fn_c_try_compile "$LINENO"
  23579. then :
  23580. have_pthread_sem=yes
  23581. fi
  23582. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23583. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  23584. printf "%s\n" "$have_pthread_sem" >&6; }
  23585. fi
  23586. if test x$have_pthread_sem = xyes; then
  23587. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  23588. printf %s "checking for sem_timedwait... " >&6; }
  23589. have_sem_timedwait=no
  23590. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23591. /* end confdefs.h. */
  23592. #include <pthread.h>
  23593. #include <semaphore.h>
  23594. int
  23595. main (void)
  23596. {
  23597. sem_timedwait(NULL, NULL);
  23598. ;
  23599. return 0;
  23600. }
  23601. _ACEOF
  23602. if ac_fn_c_try_link "$LINENO"
  23603. then :
  23604. have_sem_timedwait=yes
  23605. printf "%s\n" "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  23606. fi
  23607. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23608. conftest$ac_exeext conftest.$ac_ext
  23609. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  23610. printf "%s\n" "$have_sem_timedwait" >&6; }
  23611. fi
  23612. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  23613. "
  23614. if test "x$ac_cv_header_pthread_np_h" = xyes
  23615. then :
  23616. have_pthread_np_h=yes
  23617. else $as_nop
  23618. have_pthread_np_h=no
  23619. fi
  23620. if test x$have_pthread_np_h = xyes; then
  23621. printf "%s\n" "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  23622. fi
  23623. # Check to see if pthread naming is available
  23624. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  23625. printf %s "checking for pthread_setname_np... " >&6; }
  23626. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23627. /* end confdefs.h. */
  23628. /* Override any GCC internal prototype to avoid an error.
  23629. Use char because int might match the return type of a GCC
  23630. builtin and then its argument prototype would still apply. */
  23631. char pthread_setname_np ();
  23632. int
  23633. main (void)
  23634. {
  23635. return pthread_setname_np ();
  23636. ;
  23637. return 0;
  23638. }
  23639. _ACEOF
  23640. if ac_fn_c_try_link "$LINENO"
  23641. then :
  23642. has_pthread_setname_np=yes
  23643. printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  23644. else $as_nop
  23645. has_pthread_setname_np=no
  23646. fi
  23647. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23648. conftest$ac_exeext conftest.$ac_ext
  23649. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  23650. printf "%s\n" "$has_pthread_setname_np" >&6; }
  23651. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  23652. printf %s "checking for pthread_set_name_np... " >&6; }
  23653. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23654. /* end confdefs.h. */
  23655. /* Override any GCC internal prototype to avoid an error.
  23656. Use char because int might match the return type of a GCC
  23657. builtin and then its argument prototype would still apply. */
  23658. char pthread_set_name_np ();
  23659. int
  23660. main (void)
  23661. {
  23662. return pthread_set_name_np ();
  23663. ;
  23664. return 0;
  23665. }
  23666. _ACEOF
  23667. if ac_fn_c_try_link "$LINENO"
  23668. then :
  23669. has_pthread_set_name_np=yes
  23670. printf "%s\n" "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  23671. else $as_nop
  23672. has_pthread_set_name_np=no
  23673. fi
  23674. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23675. conftest$ac_exeext conftest.$ac_ext
  23676. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  23677. printf "%s\n" "$has_pthread_set_name_np" >&6; }
  23678. # Restore the compiler flags and libraries
  23679. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  23680. # Basic thread creation functions
  23681. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  23682. # Semaphores
  23683. # We can fake these with mutexes and condition variables if necessary
  23684. if test x$have_pthread_sem = xyes; then
  23685. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  23686. else
  23687. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  23688. fi
  23689. # Mutexes
  23690. # We can fake these with semaphores if necessary
  23691. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  23692. # Condition variables
  23693. # We can fake these with semaphores and mutexes if necessary
  23694. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  23695. # Thread local storage
  23696. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  23697. have_threads=yes
  23698. fi
  23699. fi
  23700. }
  23701. CheckWINDOWS()
  23702. {
  23703. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  23704. printf %s "checking Windows compiler... " >&6; }
  23705. have_win32_gcc=no
  23706. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23707. /* end confdefs.h. */
  23708. #include <windows.h>
  23709. int
  23710. main (void)
  23711. {
  23712. ;
  23713. return 0;
  23714. }
  23715. _ACEOF
  23716. if ac_fn_c_try_compile "$LINENO"
  23717. then :
  23718. have_win32_gcc=yes
  23719. fi
  23720. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23721. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  23722. printf "%s\n" "$have_win32_gcc" >&6; }
  23723. if test x$have_win32_gcc != xyes; then
  23724. as_fn_error $? "
  23725. *** Your compiler ($CC) does not produce Windows executables!
  23726. " "$LINENO" 5
  23727. fi
  23728. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  23729. printf %s "checking Windows CE... " >&6; }
  23730. have_wince=no
  23731. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23732. /* end confdefs.h. */
  23733. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  23734. #error This is not Windows CE
  23735. #endif
  23736. int
  23737. main (void)
  23738. {
  23739. ;
  23740. return 0;
  23741. }
  23742. _ACEOF
  23743. if ac_fn_c_try_compile "$LINENO"
  23744. then :
  23745. have_wince=yes
  23746. as_fn_error $? "
  23747. *** Sorry, Windows CE is no longer supported.
  23748. " "$LINENO" 5
  23749. fi
  23750. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23751. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  23752. printf "%s\n" "$have_wince" >&6; }
  23753. # headers needed elsewhere
  23754. ac_fn_c_check_header_compile "$LINENO" "tpcshrd.h" "ac_cv_header_tpcshrd_h" "$ac_includes_default"
  23755. if test "x$ac_cv_header_tpcshrd_h" = xyes
  23756. then :
  23757. have_tpcshrd_h=yes
  23758. fi
  23759. if test x$have_tpcshrd_h = xyes; then
  23760. printf "%s\n" "#define HAVE_TPCSHRD_H 1" >>confdefs.h
  23761. fi
  23762. ac_fn_c_check_header_compile "$LINENO" "roapi.h" "ac_cv_header_roapi_h" "$ac_includes_default"
  23763. if test "x$ac_cv_header_roapi_h" = xyes
  23764. then :
  23765. have_roapi_h=yes
  23766. fi
  23767. if test x$have_roapi_h = xyes; then
  23768. printf "%s\n" "#define HAVE_ROAPI_H 1" >>confdefs.h
  23769. fi
  23770. ac_fn_c_check_header_compile "$LINENO" "shellscalingapi.h" "ac_cv_header_shellscalingapi_h" "$ac_includes_default"
  23771. if test "x$ac_cv_header_shellscalingapi_h" = xyes
  23772. then :
  23773. have_shellscalingapi_h=yes
  23774. fi
  23775. if test x$shellscalingapi_h = xyes; then
  23776. printf "%s\n" "#define HAVE_SHELLSCALINGAPI_H 1" >>confdefs.h
  23777. fi
  23778. }
  23779. CheckOS2()
  23780. {
  23781. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OS/2 compiler" >&5
  23782. printf %s "checking OS/2 compiler... " >&6; }
  23783. have_os2_gcc=no
  23784. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23785. /* end confdefs.h. */
  23786. #include <os2.h>
  23787. int
  23788. main (void)
  23789. {
  23790. ;
  23791. return 0;
  23792. }
  23793. _ACEOF
  23794. if ac_fn_c_try_compile "$LINENO"
  23795. then :
  23796. have_os2_gcc=yes
  23797. fi
  23798. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23799. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_os2_gcc" >&5
  23800. printf "%s\n" "$have_os2_gcc" >&6; }
  23801. if test x$have_os2_gcc != xyes; then
  23802. as_fn_error $? "
  23803. *** Your compiler ($CC) does not produce OS/2 executables!
  23804. " "$LINENO" 5
  23805. fi
  23806. }
  23807. CheckDIRECTX()
  23808. {
  23809. # Check whether --enable-directx was given.
  23810. if test ${enable_directx+y}
  23811. then :
  23812. enableval=$enable_directx;
  23813. else $as_nop
  23814. enable_directx=yes
  23815. fi
  23816. if test x$enable_directx = xyes; then
  23817. ac_fn_c_check_header_compile "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  23818. if test "x$ac_cv_header_d3d9_h" = xyes
  23819. then :
  23820. have_d3d=yes
  23821. fi
  23822. ac_fn_c_check_header_compile "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  23823. if test "x$ac_cv_header_d3d11_1_h" = xyes
  23824. then :
  23825. have_d3d11=yes
  23826. fi
  23827. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for d3d12 Windows SDK version" >&5
  23828. printf %s "checking for d3d12 Windows SDK version... " >&6; }
  23829. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23830. /* end confdefs.h. */
  23831. #include <winsdkver.h>
  23832. #include <sdkddkver.h>
  23833. #include <d3d12.h>
  23834. ID3D12Device1 *device;
  23835. #if WDK_NTDDI_VERSION <= 0x0A000008
  23836. asdf
  23837. #endif
  23838. int
  23839. main (void)
  23840. {
  23841. ;
  23842. return 0;
  23843. }
  23844. _ACEOF
  23845. if ac_fn_c_try_compile "$LINENO"
  23846. then :
  23847. have_d3d12=yes
  23848. else $as_nop
  23849. have_d3d12=no
  23850. fi
  23851. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23852. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_d3d12" >&5
  23853. printf "%s\n" "$have_d3d12" >&6; }
  23854. ac_fn_c_check_header_compile "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  23855. if test "x$ac_cv_header_ddraw_h" = xyes
  23856. then :
  23857. have_ddraw=yes
  23858. fi
  23859. ac_fn_c_check_header_compile "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  23860. if test "x$ac_cv_header_dsound_h" = xyes
  23861. then :
  23862. have_dsound=yes
  23863. fi
  23864. ac_fn_c_check_header_compile "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  23865. if test "x$ac_cv_header_dinput_h" = xyes
  23866. then :
  23867. have_dinput=yes
  23868. fi
  23869. ac_fn_c_check_header_compile "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  23870. if test "x$ac_cv_header_dxgi_h" = xyes
  23871. then :
  23872. have_dxgi=yes
  23873. fi
  23874. if test x$have_ddraw = xyes; then
  23875. printf "%s\n" "#define HAVE_DDRAW_H 1" >>confdefs.h
  23876. fi
  23877. if test x$have_dinput = xyes; then
  23878. printf "%s\n" "#define HAVE_DINPUT_H 1" >>confdefs.h
  23879. fi
  23880. if test x$have_dsound = xyes; then
  23881. printf "%s\n" "#define HAVE_DSOUND_H 1" >>confdefs.h
  23882. fi
  23883. if test x$have_dxgi = xyes; then
  23884. printf "%s\n" "#define HAVE_DXGI_H 1" >>confdefs.h
  23885. fi
  23886. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  23887. # FIXME: ...so force it off for now.
  23888. case "$host" in
  23889. *-*-cygwin*)
  23890. have_dinput=false
  23891. ;;
  23892. esac
  23893. fi
  23894. # Check whether --enable-xinput was given.
  23895. if test ${enable_xinput+y}
  23896. then :
  23897. enableval=$enable_xinput;
  23898. else $as_nop
  23899. enable_xinput=yes
  23900. fi
  23901. if test x$enable_xinput = xyes; then
  23902. ac_fn_c_check_header_compile "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  23903. if test "x$ac_cv_header_xinput_h" = xyes
  23904. then :
  23905. have_xinput=yes
  23906. fi
  23907. if test x$have_xinput = xyes; then
  23908. printf "%s\n" "#define HAVE_XINPUT_H 1" >>confdefs.h
  23909. fi
  23910. fi
  23911. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.gaming.input.h" >&5
  23912. printf %s "checking for windows.gaming.input.h... " >&6; }
  23913. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23914. /* end confdefs.h. */
  23915. #define COBJMACROS
  23916. #include <windows.gaming.input.h>
  23917. __x_ABI_CWindows_CGaming_CInput_CIGamepadStatics2 *s2;
  23918. int
  23919. main (void)
  23920. {
  23921. ;
  23922. return 0;
  23923. }
  23924. _ACEOF
  23925. if ac_fn_c_try_compile "$LINENO"
  23926. then :
  23927. have_wgi=yes
  23928. else $as_nop
  23929. have_wgi=no
  23930. fi
  23931. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23932. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wgi" >&5
  23933. printf "%s\n" "$have_wgi" >&6; }
  23934. if test x$have_wgi = xyes; then
  23935. printf "%s\n" "#define HAVE_WINDOWS_GAMING_INPUT_H 1" >>confdefs.h
  23936. fi
  23937. ac_fn_c_check_header_compile "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  23938. if test "x$ac_cv_header_mmdeviceapi_h" = xyes
  23939. then :
  23940. have_wasapi=yes
  23941. fi
  23942. if test x$have_wasapi = xyes; then
  23943. printf "%s\n" "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  23944. fi
  23945. ac_fn_c_check_header_compile "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  23946. if test "x$ac_cv_header_audioclient_h" = xyes
  23947. then :
  23948. else $as_nop
  23949. have_wasapi=no
  23950. fi
  23951. if test x$have_wasapi = xyes; then
  23952. printf "%s\n" "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  23953. fi
  23954. # Check whether --enable-wasapi was given.
  23955. if test ${enable_wasapi+y}
  23956. then :
  23957. enableval=$enable_wasapi;
  23958. else $as_nop
  23959. enable_wasapi=yes
  23960. fi
  23961. }
  23962. CheckDLOPEN()
  23963. {
  23964. printf "%s\n" "#define DYNAPI_NEEDS_DLOPEN 1" >>confdefs.h
  23965. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  23966. if test "x$ac_cv_header_dlfcn_h" = xyes
  23967. then :
  23968. have_dlfcn_h=yes
  23969. else $as_nop
  23970. have_dlfcn_h=no
  23971. fi
  23972. have_dlopen=no
  23973. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  23974. printf %s "checking for dlopen in -lc... " >&6; }
  23975. if test ${ac_cv_lib_c_dlopen+y}
  23976. then :
  23977. printf %s "(cached) " >&6
  23978. else $as_nop
  23979. ac_check_lib_save_LIBS=$LIBS
  23980. LIBS="-lc $LIBS"
  23981. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23982. /* end confdefs.h. */
  23983. /* Override any GCC internal prototype to avoid an error.
  23984. Use char because int might match the return type of a GCC
  23985. builtin and then its argument prototype would still apply. */
  23986. char dlopen ();
  23987. int
  23988. main (void)
  23989. {
  23990. return dlopen ();
  23991. ;
  23992. return 0;
  23993. }
  23994. _ACEOF
  23995. if ac_fn_c_try_link "$LINENO"
  23996. then :
  23997. ac_cv_lib_c_dlopen=yes
  23998. else $as_nop
  23999. ac_cv_lib_c_dlopen=no
  24000. fi
  24001. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24002. conftest$ac_exeext conftest.$ac_ext
  24003. LIBS=$ac_check_lib_save_LIBS
  24004. fi
  24005. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  24006. printf "%s\n" "$ac_cv_lib_c_dlopen" >&6; }
  24007. if test "x$ac_cv_lib_c_dlopen" = xyes
  24008. then :
  24009. have_dlopen=yes
  24010. else $as_nop
  24011. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  24012. printf %s "checking for dlopen in -ldl... " >&6; }
  24013. if test ${ac_cv_lib_dl_dlopen+y}
  24014. then :
  24015. printf %s "(cached) " >&6
  24016. else $as_nop
  24017. ac_check_lib_save_LIBS=$LIBS
  24018. LIBS="-ldl $LIBS"
  24019. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24020. /* end confdefs.h. */
  24021. /* Override any GCC internal prototype to avoid an error.
  24022. Use char because int might match the return type of a GCC
  24023. builtin and then its argument prototype would still apply. */
  24024. char dlopen ();
  24025. int
  24026. main (void)
  24027. {
  24028. return dlopen ();
  24029. ;
  24030. return 0;
  24031. }
  24032. _ACEOF
  24033. if ac_fn_c_try_link "$LINENO"
  24034. then :
  24035. ac_cv_lib_dl_dlopen=yes
  24036. else $as_nop
  24037. ac_cv_lib_dl_dlopen=no
  24038. fi
  24039. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24040. conftest$ac_exeext conftest.$ac_ext
  24041. LIBS=$ac_check_lib_save_LIBS
  24042. fi
  24043. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  24044. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  24045. if test "x$ac_cv_lib_dl_dlopen" = xyes
  24046. then :
  24047. have_dlopen=yes; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  24048. fi
  24049. fi
  24050. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  24051. printf %s "checking for dlopen... " >&6; }
  24052. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  24053. printf "%s\n" "$have_dlopen" >&6; }
  24054. if test x$have_dlfcn_h = xyes -a x$have_dlopen = xyes; then
  24055. printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
  24056. if test x$enable_loadso = xyes; then
  24057. printf "%s\n" "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  24058. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  24059. have_loadso=yes
  24060. fi
  24061. fi
  24062. }
  24063. CheckO_CLOEXEC()
  24064. {
  24065. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
  24066. printf %s "checking for O_CLOEXEC... " >&6; }
  24067. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24068. /* end confdefs.h. */
  24069. #include <fcntl.h>
  24070. int flag = O_CLOEXEC;
  24071. int
  24072. main (void)
  24073. {
  24074. ;
  24075. return 0;
  24076. }
  24077. _ACEOF
  24078. if ac_fn_c_try_compile "$LINENO"
  24079. then :
  24080. have_o_cloexec=yes
  24081. else $as_nop
  24082. have_o_cloexec=no
  24083. fi
  24084. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24085. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_o_cloexec" >&5
  24086. printf "%s\n" "$have_o_cloexec" >&6; }
  24087. if test $have_o_cloexec = yes; then
  24088. printf "%s\n" "#define HAVE_O_CLOEXEC 1" >>confdefs.h
  24089. fi
  24090. }
  24091. CheckUSBHID()
  24092. {
  24093. case "$host" in
  24094. *-*-*bsd*|*-*-dragonfly*)
  24095. if test x$enable_joystick = xyes; then
  24096. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  24097. printf %s "checking for hid_init in -lusbhid... " >&6; }
  24098. if test ${ac_cv_lib_usbhid_hid_init+y}
  24099. then :
  24100. printf %s "(cached) " >&6
  24101. else $as_nop
  24102. ac_check_lib_save_LIBS=$LIBS
  24103. LIBS="-lusbhid $LIBS"
  24104. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24105. /* end confdefs.h. */
  24106. /* Override any GCC internal prototype to avoid an error.
  24107. Use char because int might match the return type of a GCC
  24108. builtin and then its argument prototype would still apply. */
  24109. char hid_init ();
  24110. int
  24111. main (void)
  24112. {
  24113. return hid_init ();
  24114. ;
  24115. return 0;
  24116. }
  24117. _ACEOF
  24118. if ac_fn_c_try_link "$LINENO"
  24119. then :
  24120. ac_cv_lib_usbhid_hid_init=yes
  24121. else $as_nop
  24122. ac_cv_lib_usbhid_hid_init=no
  24123. fi
  24124. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24125. conftest$ac_exeext conftest.$ac_ext
  24126. LIBS=$ac_check_lib_save_LIBS
  24127. fi
  24128. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  24129. printf "%s\n" "$ac_cv_lib_usbhid_hid_init" >&6; }
  24130. if test "x$ac_cv_lib_usbhid_hid_init" = xyes
  24131. then :
  24132. have_libusbhid=yes
  24133. fi
  24134. if test x$have_libusbhid = xyes; then
  24135. ac_fn_c_check_header_compile "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  24136. if test "x$ac_cv_header_usbhid_h" = xyes
  24137. then :
  24138. USB_CFLAGS="-DHAVE_USBHID_H"
  24139. fi
  24140. ac_fn_c_check_header_compile "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  24141. if test "x$ac_cv_header_libusbhid_h" = xyes
  24142. then :
  24143. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  24144. fi
  24145. USB_LIBS="$USB_LIBS -lusbhid"
  24146. else
  24147. ac_fn_c_check_header_compile "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  24148. if test "x$ac_cv_header_usb_h" = xyes
  24149. then :
  24150. USB_CFLAGS="-DHAVE_USB_H"
  24151. fi
  24152. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  24153. if test "x$ac_cv_header_libusb_h" = xyes
  24154. then :
  24155. USB_CFLAGS="-DHAVE_LIBUSB_H"
  24156. fi
  24157. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  24158. printf %s "checking for hid_init in -lusb... " >&6; }
  24159. if test ${ac_cv_lib_usb_hid_init+y}
  24160. then :
  24161. printf %s "(cached) " >&6
  24162. else $as_nop
  24163. ac_check_lib_save_LIBS=$LIBS
  24164. LIBS="-lusb $LIBS"
  24165. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24166. /* end confdefs.h. */
  24167. /* Override any GCC internal prototype to avoid an error.
  24168. Use char because int might match the return type of a GCC
  24169. builtin and then its argument prototype would still apply. */
  24170. char hid_init ();
  24171. int
  24172. main (void)
  24173. {
  24174. return hid_init ();
  24175. ;
  24176. return 0;
  24177. }
  24178. _ACEOF
  24179. if ac_fn_c_try_link "$LINENO"
  24180. then :
  24181. ac_cv_lib_usb_hid_init=yes
  24182. else $as_nop
  24183. ac_cv_lib_usb_hid_init=no
  24184. fi
  24185. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24186. conftest$ac_exeext conftest.$ac_ext
  24187. LIBS=$ac_check_lib_save_LIBS
  24188. fi
  24189. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  24190. printf "%s\n" "$ac_cv_lib_usb_hid_init" >&6; }
  24191. if test "x$ac_cv_lib_usb_hid_init" = xyes
  24192. then :
  24193. USB_LIBS="$USB_LIBS -lusb"
  24194. fi
  24195. fi
  24196. save_CFLAGS="$CFLAGS"
  24197. CFLAGS="$CFLAGS $USB_CFLAGS"
  24198. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  24199. printf %s "checking for usbhid... " >&6; }
  24200. have_usbhid=no
  24201. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24202. /* end confdefs.h. */
  24203. #include <sys/types.h>
  24204. #if defined(HAVE_USB_H)
  24205. #include <usb.h>
  24206. #endif
  24207. #ifdef __DragonFly__
  24208. # include <bus/u4b/usb.h>
  24209. # include <bus/u4b/usbhid.h>
  24210. #else
  24211. # include <dev/usb/usb.h>
  24212. # include <dev/usb/usbhid.h>
  24213. #endif
  24214. #if defined(HAVE_USBHID_H)
  24215. #include <usbhid.h>
  24216. #elif defined(HAVE_LIBUSB_H)
  24217. #include <libusb.h>
  24218. #elif defined(HAVE_LIBUSBHID_H)
  24219. #include <libusbhid.h>
  24220. #endif
  24221. int
  24222. main (void)
  24223. {
  24224. struct report_desc *repdesc;
  24225. struct usb_ctl_report *repbuf;
  24226. hid_kind_t hidkind;
  24227. ;
  24228. return 0;
  24229. }
  24230. _ACEOF
  24231. if ac_fn_c_try_compile "$LINENO"
  24232. then :
  24233. have_usbhid=yes
  24234. fi
  24235. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24236. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  24237. printf "%s\n" "$have_usbhid" >&6; }
  24238. if test x$have_usbhid = xyes; then
  24239. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  24240. printf %s "checking for ucr_data member of usb_ctl_report... " >&6; }
  24241. have_usbhid_ucr_data=no
  24242. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24243. /* end confdefs.h. */
  24244. #include <sys/types.h>
  24245. #if defined(HAVE_USB_H)
  24246. #include <usb.h>
  24247. #endif
  24248. #ifdef __DragonFly__
  24249. # include <bus/u4b/usb.h>
  24250. # include <bus/u4b/usbhid.h>
  24251. #else
  24252. # include <dev/usb/usb.h>
  24253. # include <dev/usb/usbhid.h>
  24254. #endif
  24255. #if defined(HAVE_USBHID_H)
  24256. #include <usbhid.h>
  24257. #elif defined(HAVE_LIBUSB_H)
  24258. #include <libusb.h>
  24259. #elif defined(HAVE_LIBUSBHID_H)
  24260. #include <libusbhid.h>
  24261. #endif
  24262. int
  24263. main (void)
  24264. {
  24265. struct usb_ctl_report buf;
  24266. if (buf.ucr_data) { }
  24267. ;
  24268. return 0;
  24269. }
  24270. _ACEOF
  24271. if ac_fn_c_try_compile "$LINENO"
  24272. then :
  24273. have_usbhid_ucr_data=yes
  24274. fi
  24275. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24276. if test x$have_usbhid_ucr_data = xyes; then
  24277. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  24278. fi
  24279. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  24280. printf "%s\n" "$have_usbhid_ucr_data" >&6; }
  24281. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  24282. printf %s "checking for new usbhid API... " >&6; }
  24283. have_usbhid_new=no
  24284. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24285. /* end confdefs.h. */
  24286. #include <sys/types.h>
  24287. #if defined(HAVE_USB_H)
  24288. #include <usb.h>
  24289. #endif
  24290. #ifdef __DragonFly__
  24291. #include <bus/u4b/usb.h>
  24292. #include <bus/u4b/usbhid.h>
  24293. #else
  24294. #include <dev/usb/usb.h>
  24295. #include <dev/usb/usbhid.h>
  24296. #endif
  24297. #if defined(HAVE_USBHID_H)
  24298. #include <usbhid.h>
  24299. #elif defined(HAVE_LIBUSB_H)
  24300. #include <libusb.h>
  24301. #elif defined(HAVE_LIBUSBHID_H)
  24302. #include <libusbhid.h>
  24303. #endif
  24304. int
  24305. main (void)
  24306. {
  24307. report_desc_t d;
  24308. hid_start_parse(d, 1, 1);
  24309. ;
  24310. return 0;
  24311. }
  24312. _ACEOF
  24313. if ac_fn_c_try_compile "$LINENO"
  24314. then :
  24315. have_usbhid_new=yes
  24316. fi
  24317. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24318. if test x$have_usbhid_new = xyes; then
  24319. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  24320. fi
  24321. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  24322. printf "%s\n" "$have_usbhid_new" >&6; }
  24323. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  24324. printf %s "checking for struct joystick in machine/joystick.h... " >&6; }
  24325. have_machine_joystick=no
  24326. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24327. /* end confdefs.h. */
  24328. #include <machine/joystick.h>
  24329. int
  24330. main (void)
  24331. {
  24332. struct joystick t;
  24333. ;
  24334. return 0;
  24335. }
  24336. _ACEOF
  24337. if ac_fn_c_try_compile "$LINENO"
  24338. then :
  24339. have_machine_joystick=yes
  24340. fi
  24341. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24342. if test x$have_machine_joystick = xyes; then
  24343. printf "%s\n" "#define SDL_HAVE_MACHINE_JOYSTICK_H 1" >>confdefs.h
  24344. fi
  24345. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  24346. printf "%s\n" "$have_machine_joystick" >&6; }
  24347. printf "%s\n" "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  24348. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  24349. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  24350. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  24351. have_joystick=yes
  24352. fi
  24353. CFLAGS="$save_CFLAGS"
  24354. fi
  24355. ;;
  24356. esac
  24357. }
  24358. CheckHIDAPI()
  24359. {
  24360. # Check whether --enable-hidapi-joystick was given.
  24361. if test ${enable_hidapi_joystick+y}
  24362. then :
  24363. enableval=$enable_hidapi_joystick;
  24364. else $as_nop
  24365. enable_hidapi_joystick=yes
  24366. fi
  24367. # Check whether --enable-hidapi-libusb was given.
  24368. if test ${enable_hidapi_libusb+y}
  24369. then :
  24370. enableval=$enable_hidapi_libusb;
  24371. else $as_nop
  24372. enable_hidapi_libusb=maybe
  24373. fi
  24374. if test x$enable_hidapi = xyes; then
  24375. case "$host" in
  24376. # libusb does not support iOS
  24377. *-ios-* )
  24378. enable_hidapi_libusb=no
  24379. ;;
  24380. # On the other hand, *BSD specifically uses libusb only
  24381. *-*-*bsd* )
  24382. enable_hidapi_libusb=yes
  24383. require_hidapi_libusb=yes
  24384. ;;
  24385. *-*-os2* )
  24386. enable_hidapi_libusb=yes
  24387. ;;
  24388. esac
  24389. hidapi_support=yes
  24390. if test x$enable_hidapi_libusb = xyes; then
  24391. pkg_failed=no
  24392. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
  24393. printf %s "checking for libusb-1.0... " >&6; }
  24394. if test -n "$LIBUSB_CFLAGS"; then
  24395. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  24396. elif test -n "$PKG_CONFIG"; then
  24397. if test -n "$PKG_CONFIG" && \
  24398. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  24399. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  24400. ac_status=$?
  24401. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24402. test $ac_status = 0; }; then
  24403. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  24404. test "x$?" != "x0" && pkg_failed=yes
  24405. else
  24406. pkg_failed=yes
  24407. fi
  24408. else
  24409. pkg_failed=untried
  24410. fi
  24411. if test -n "$LIBUSB_LIBS"; then
  24412. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  24413. elif test -n "$PKG_CONFIG"; then
  24414. if test -n "$PKG_CONFIG" && \
  24415. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  24416. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  24417. ac_status=$?
  24418. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24419. test $ac_status = 0; }; then
  24420. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  24421. test "x$?" != "x0" && pkg_failed=yes
  24422. else
  24423. pkg_failed=yes
  24424. fi
  24425. else
  24426. pkg_failed=untried
  24427. fi
  24428. if test $pkg_failed = yes; then
  24429. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24430. printf "%s\n" "no" >&6; }
  24431. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  24432. _pkg_short_errors_supported=yes
  24433. else
  24434. _pkg_short_errors_supported=no
  24435. fi
  24436. if test $_pkg_short_errors_supported = yes; then
  24437. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
  24438. else
  24439. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
  24440. fi
  24441. # Put the nasty error message in config.log where it belongs
  24442. echo "$LIBUSB_PKG_ERRORS" >&5
  24443. have_libusb=no
  24444. elif test $pkg_failed = untried; then
  24445. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24446. printf "%s\n" "no" >&6; }
  24447. have_libusb=no
  24448. else
  24449. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  24450. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  24451. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24452. printf "%s\n" "yes" >&6; }
  24453. have_libusb=yes
  24454. fi
  24455. save_CPPFLAGS="$CPPFLAGS"
  24456. CPPFLAGS="$save_CPPFLAGS $LIBUSB_CFLAGS"
  24457. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  24458. if test "x$ac_cv_header_libusb_h" = xyes
  24459. then :
  24460. have_libusb_h=yes
  24461. else $as_nop
  24462. have_libusb_h=no
  24463. fi
  24464. CPPFLAGS="$save_CPPFLAGS"
  24465. if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
  24466. hidapi_support=no
  24467. fi
  24468. fi
  24469. if test x$hidapi_support = xyes; then
  24470. if test x$have_libusb_h = xyes; then
  24471. printf "%s\n" "#define HAVE_LIBUSB 1" >>confdefs.h
  24472. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  24473. if test x$require_hidapi_libusb = xyes; then
  24474. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  24475. else
  24476. if test x$have_loadso != xyes; then
  24477. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  24478. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  24479. fi
  24480. # libusb is loaded dynamically, so don't add it to LDFLAGS
  24481. libusb_lib=""
  24482. case "$host" in
  24483. *-*-darwin* )
  24484. libusb_lib="libusb-1.0.0.dylib"
  24485. ;;
  24486. *-*-cygwin* | *-*-mingw* )
  24487. libusb_lib="libusb-1.0.dll"
  24488. ;;
  24489. *-*-os2* )
  24490. libusb_lib="usb100.dll"
  24491. ;;
  24492. esac
  24493. if test x$libusb_lib = x; then
  24494. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  24495. fi
  24496. printf "%s\n" "#define SDL_LIBUSB_DYNAMIC \"$libusb_lib\"" >>confdefs.h
  24497. fi
  24498. fi
  24499. fi
  24500. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hidapi joystick support" >&5
  24501. printf %s "checking for hidapi joystick support... " >&6; }
  24502. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  24503. printf "%s\n" "$hidapi_support" >&6; }
  24504. fi
  24505. if test x$enable_joystick = xyes -a x$hidapi_support = xyes -a x$enable_hidapi_joystick = xyes; then
  24506. printf "%s\n" "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  24507. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  24508. fi
  24509. }
  24510. CheckClockGettime()
  24511. {
  24512. # Check whether --enable-clock_gettime was given.
  24513. if test ${enable_clock_gettime+y}
  24514. then :
  24515. enableval=$enable_clock_gettime;
  24516. else $as_nop
  24517. enable_clock_gettime=yes
  24518. fi
  24519. if test x$enable_clock_gettime = xyes; then
  24520. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  24521. printf %s "checking for clock_gettime in -lc... " >&6; }
  24522. if test ${ac_cv_lib_c_clock_gettime+y}
  24523. then :
  24524. printf %s "(cached) " >&6
  24525. else $as_nop
  24526. ac_check_lib_save_LIBS=$LIBS
  24527. LIBS="-lc $LIBS"
  24528. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24529. /* end confdefs.h. */
  24530. /* Override any GCC internal prototype to avoid an error.
  24531. Use char because int might match the return type of a GCC
  24532. builtin and then its argument prototype would still apply. */
  24533. char clock_gettime ();
  24534. int
  24535. main (void)
  24536. {
  24537. return clock_gettime ();
  24538. ;
  24539. return 0;
  24540. }
  24541. _ACEOF
  24542. if ac_fn_c_try_link "$LINENO"
  24543. then :
  24544. ac_cv_lib_c_clock_gettime=yes
  24545. else $as_nop
  24546. ac_cv_lib_c_clock_gettime=no
  24547. fi
  24548. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24549. conftest$ac_exeext conftest.$ac_ext
  24550. LIBS=$ac_check_lib_save_LIBS
  24551. fi
  24552. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  24553. printf "%s\n" "$ac_cv_lib_c_clock_gettime" >&6; }
  24554. if test "x$ac_cv_lib_c_clock_gettime" = xyes
  24555. then :
  24556. have_clock_gettime=yes
  24557. fi
  24558. if test x$have_clock_gettime = xyes; then
  24559. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  24560. else
  24561. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  24562. printf %s "checking for clock_gettime in -lrt... " >&6; }
  24563. if test ${ac_cv_lib_rt_clock_gettime+y}
  24564. then :
  24565. printf %s "(cached) " >&6
  24566. else $as_nop
  24567. ac_check_lib_save_LIBS=$LIBS
  24568. LIBS="-lrt $LIBS"
  24569. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24570. /* end confdefs.h. */
  24571. /* Override any GCC internal prototype to avoid an error.
  24572. Use char because int might match the return type of a GCC
  24573. builtin and then its argument prototype would still apply. */
  24574. char clock_gettime ();
  24575. int
  24576. main (void)
  24577. {
  24578. return clock_gettime ();
  24579. ;
  24580. return 0;
  24581. }
  24582. _ACEOF
  24583. if ac_fn_c_try_link "$LINENO"
  24584. then :
  24585. ac_cv_lib_rt_clock_gettime=yes
  24586. else $as_nop
  24587. ac_cv_lib_rt_clock_gettime=no
  24588. fi
  24589. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24590. conftest$ac_exeext conftest.$ac_ext
  24591. LIBS=$ac_check_lib_save_LIBS
  24592. fi
  24593. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  24594. printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
  24595. if test "x$ac_cv_lib_rt_clock_gettime" = xyes
  24596. then :
  24597. have_clock_gettime=yes
  24598. fi
  24599. if test x$have_clock_gettime = xyes; then
  24600. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  24601. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  24602. fi
  24603. fi
  24604. fi
  24605. }
  24606. CheckLinuxVersion()
  24607. {
  24608. ac_fn_c_check_header_compile "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  24609. if test "x$ac_cv_header_linux_version_h" = xyes
  24610. then :
  24611. have_linux_version_h=yes
  24612. fi
  24613. if test x$have_linux_version_h = xyes; then
  24614. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  24615. fi
  24616. }
  24617. CheckRPATH()
  24618. {
  24619. # Check whether --enable-rpath was given.
  24620. if test ${enable_rpath+y}
  24621. then :
  24622. enableval=$enable_rpath;
  24623. else $as_nop
  24624. enable_rpath=yes
  24625. fi
  24626. }
  24627. CheckEventSignals()
  24628. {
  24629. # Check whether --enable-backgrounding-signal was given.
  24630. if test ${enable_backgrounding_signal+y}
  24631. then :
  24632. enableval=$enable_backgrounding_signal;
  24633. else $as_nop
  24634. enable_backgrounding_signal=no
  24635. fi
  24636. if test x$enable_backgrounding_signal != xno; then
  24637. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  24638. fi
  24639. # Check whether --enable-foregrounding-signal was given.
  24640. if test ${enable_foregrounding_signal+y}
  24641. then :
  24642. enableval=$enable_foregrounding_signal;
  24643. else $as_nop
  24644. enable_foregrounding_signal=no
  24645. fi
  24646. if test x$enable_foregrounding_signal != xno; then
  24647. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  24648. fi
  24649. }
  24650. CheckVirtualJoystick()
  24651. {
  24652. # Check whether --enable-joystick-virtual was given.
  24653. if test ${enable_joystick_virtual+y}
  24654. then :
  24655. enableval=$enable_joystick_virtual;
  24656. else $as_nop
  24657. enable_joystick_virtual=yes
  24658. fi
  24659. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  24660. printf "%s\n" "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  24661. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  24662. have_joystick_virtual=yes
  24663. fi
  24664. }
  24665. CheckWarnAll
  24666. CheckUnusedLocalTypedefs
  24667. CheckNoStrictAliasing
  24668. CheckEventSignals
  24669. have_locale=no
  24670. case "$host" in
  24671. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  24672. case "$host" in
  24673. *-*-android*)
  24674. # Android
  24675. ARCH=android
  24676. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  24677. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  24678. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  24679. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  24680. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  24681. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  24682. if test x$enable_video = xyes; then
  24683. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  24684. printf "%s\n" "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  24685. SUMMARY_video="${SUMMARY_video} android"
  24686. have_video=yes
  24687. fi
  24688. ;;
  24689. *-*-linux*) ARCH=linux ;;
  24690. *-*-uclinux*) ARCH=linux ;;
  24691. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  24692. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  24693. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  24694. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  24695. *-*-bsdi*) ARCH=bsdi ;;
  24696. *-*-freebsd*) ARCH=freebsd ;;
  24697. *-*-dragonfly*) ARCH=freebsd ;;
  24698. *-*-netbsd*) ARCH=netbsd ;;
  24699. *-*-openbsd*) ARCH=openbsd ;;
  24700. *-*-sysv5*) ARCH=sysv5 ;;
  24701. *-*-solaris*) ARCH=solaris ;;
  24702. *-*-hpux*) ARCH=hpux ;;
  24703. *-*-aix*) ARCH=aix ;;
  24704. *-*-minix*) ARCH=minix ;;
  24705. *-*-nto*) ARCH=nto
  24706. CheckQNXVideo
  24707. ;;
  24708. esac
  24709. CheckVisibilityHidden
  24710. CheckWerror
  24711. CheckDeclarationAfterStatement
  24712. CheckDummyVideo
  24713. CheckOffscreenVideo
  24714. CheckDiskAudio
  24715. CheckDummyAudio
  24716. CheckDLOPEN
  24717. CheckARM
  24718. CheckNEON
  24719. CheckO_CLOEXEC
  24720. CheckOSS
  24721. CheckALSA
  24722. CheckPipewire
  24723. CheckPulseAudio
  24724. CheckJACK
  24725. CheckARTSC
  24726. CheckESD
  24727. CheckNAS
  24728. CheckSNDIO
  24729. CheckFusionSound
  24730. CheckLibSampleRate
  24731. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  24732. CheckRPI
  24733. CheckX11
  24734. CheckDirectFB
  24735. # Need to check for EGL first because KMSDRM and Wayland depends on it.
  24736. CheckEGL
  24737. CheckKMSDRM
  24738. CheckGLX
  24739. CheckOpenGL
  24740. CheckOpenGLES
  24741. CheckVulkan
  24742. CheckWayland
  24743. CheckInputEvents
  24744. CheckLibUDev
  24745. CheckDBus
  24746. CheckIME
  24747. CheckInotify
  24748. CheckIBus
  24749. CheckFcitx
  24750. case $ARCH in
  24751. linux)
  24752. CheckInputKD
  24753. ;;
  24754. freebsd)
  24755. CheckInputKBIO
  24756. ;;
  24757. openbsd|netbsd)
  24758. CheckInputWSCONS
  24759. ;;
  24760. esac
  24761. CheckUSBHID
  24762. CheckHIDAPI
  24763. CheckPTHREAD
  24764. CheckClockGettime
  24765. CheckLinuxVersion
  24766. CheckRPATH
  24767. CheckVivanteVideo
  24768. # Set up files for the misc library
  24769. if test x$enable_misc = xyes; then
  24770. SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
  24771. have_misc=yes
  24772. fi
  24773. # Set up files for the locale library
  24774. if test x$enable_locale = xyes; then
  24775. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  24776. have_locale=yes
  24777. fi
  24778. # Set up files for the audio library
  24779. if test x$enable_audio = xyes; then
  24780. case $ARCH in
  24781. sysv5|solaris|hpux)
  24782. printf "%s\n" "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  24783. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  24784. SUMMARY_audio="${SUMMARY_audio} sun"
  24785. have_audio=yes
  24786. ;;
  24787. netbsd) # Don't use this on OpenBSD, it's busted.
  24788. printf "%s\n" "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  24789. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  24790. SUMMARY_audio="${SUMMARY_audio} netbsd"
  24791. have_audio=yes
  24792. ;;
  24793. aix)
  24794. printf "%s\n" "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  24795. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  24796. SUMMARY_audio="${SUMMARY_audio} paudio"
  24797. have_audio=yes
  24798. ;;
  24799. android)
  24800. printf "%s\n" "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  24801. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  24802. SUMMARY_audio="${SUMMARY_audio} android"
  24803. printf "%s\n" "#define SDL_AUDIO_DRIVER_OPENSLES 1" >>confdefs.h
  24804. SOURCES="$SOURCES $srcdir/src/audio/openslES/*.c"
  24805. SUMMARY_audio="${SUMMARY_audio} openslES"
  24806. printf "%s\n" "#define SDL_AUDIO_DRIVER_AAUDIO 1" >>confdefs.h
  24807. SOURCES="$SOURCES $srcdir/src/audio/aaudio/*.c"
  24808. SUMMARY_audio="${SUMMARY_audio} aaudio"
  24809. have_audio=yes
  24810. ;;
  24811. nto)
  24812. CheckQNXAudio
  24813. ;;
  24814. esac
  24815. fi
  24816. # Set up files for the joystick library
  24817. if test x$enable_joystick = xyes; then
  24818. case $ARCH in
  24819. linux)
  24820. if test "x$ac_cv_header_linux_input_h" = xyes; then
  24821. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  24822. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  24823. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24824. have_joystick=yes
  24825. fi
  24826. ;;
  24827. freebsd)
  24828. if test x$use_input_events = xyes -a x$ac_cv_header_linux_input_h = xyes; then
  24829. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  24830. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  24831. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24832. have_joystick=yes
  24833. fi
  24834. ;;
  24835. android)
  24836. printf "%s\n" "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  24837. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  24838. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24839. have_joystick=yes
  24840. ;;
  24841. esac
  24842. fi
  24843. # Set up files for the haptic library
  24844. if test x$enable_haptic = xyes; then
  24845. case $ARCH in
  24846. linux|freebsd)
  24847. if test x$use_input_events = xyes; then
  24848. printf "%s\n" "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  24849. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  24850. have_haptic=yes
  24851. fi
  24852. ;;
  24853. android)
  24854. printf "%s\n" "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  24855. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  24856. have_haptic=yes
  24857. ;;
  24858. esac
  24859. fi
  24860. # Set up files for the sensor library
  24861. if test x$enable_sensor = xyes; then
  24862. case $ARCH in
  24863. android)
  24864. printf "%s\n" "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  24865. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  24866. have_sensor=yes
  24867. ;;
  24868. esac
  24869. fi
  24870. # Set up files for the power library
  24871. if test x$enable_power = xyes; then
  24872. case $ARCH in
  24873. linux)
  24874. printf "%s\n" "#define SDL_POWER_LINUX 1" >>confdefs.h
  24875. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  24876. have_power=yes
  24877. ;;
  24878. android)
  24879. printf "%s\n" "#define SDL_POWER_ANDROID 1" >>confdefs.h
  24880. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  24881. have_power=yes
  24882. ;;
  24883. esac
  24884. fi
  24885. # Set up files for the filesystem library
  24886. if test x$enable_filesystem = xyes; then
  24887. case $ARCH in
  24888. android)
  24889. printf "%s\n" "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  24890. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  24891. have_filesystem=yes
  24892. ;;
  24893. *)
  24894. printf "%s\n" "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  24895. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  24896. have_filesystem=yes
  24897. ;;
  24898. esac
  24899. fi
  24900. # Set up files for the timer library
  24901. if test x$enable_timers = xyes; then
  24902. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  24903. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  24904. have_timers=yes
  24905. fi
  24906. # Set up files for udev hotplugging support
  24907. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  24908. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  24909. fi
  24910. # Set up files for evdev input
  24911. if test x$use_input_events = xyes; then
  24912. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  24913. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_kbd.c"
  24914. SOURCES="$SOURCES $srcdir/src/core/freebsd/SDL_evdev_kbd_freebsd.c"
  24915. fi
  24916. # Set up files for wscons input
  24917. if test x$use_input_wscons = xyes; then
  24918. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_kbd.c"
  24919. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_mouse.c"
  24920. fi
  24921. # Set up other core UNIX files
  24922. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_capabilities.c"
  24923. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  24924. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_sandbox.c"
  24925. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  24926. ;;
  24927. *-*-cygwin* | *-*-mingw*)
  24928. ARCH=win32
  24929. if test "$build" != "$host"; then # cross-compiling
  24930. # Default cross-compile location
  24931. ac_default_prefix=/usr/local/cross-tools/$host
  24932. else
  24933. # Look for the location of the tools and install there
  24934. if test "$BUILD_PREFIX" != ""; then
  24935. ac_default_prefix=$BUILD_PREFIX
  24936. fi
  24937. fi
  24938. if test x$enable_loadso = xyes; then
  24939. have_loadso=yes
  24940. fi
  24941. CheckGDwarf4
  24942. CheckWerror
  24943. CheckDeclarationAfterStatement
  24944. CheckDummyVideo
  24945. CheckOffscreenVideo
  24946. CheckDiskAudio
  24947. CheckDummyAudio
  24948. CheckWINDOWS
  24949. CheckWINDOWSGL
  24950. CheckWINDOWSGLES
  24951. CheckVulkan
  24952. CheckDIRECTX
  24953. CheckHIDAPI
  24954. # Set up the core platform files
  24955. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  24956. # Set up files for the misc library
  24957. if test x$enable_misc = xyes; then
  24958. SOURCES="$SOURCES $srcdir/src/misc/windows/*.c"
  24959. have_misc=yes
  24960. fi
  24961. # Use the Windows locale APIs.
  24962. if test x$enable_locale = xyes; then
  24963. SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
  24964. have_locale=yes
  24965. fi
  24966. # Set up files for the video library
  24967. if test x$enable_video = xyes; then
  24968. printf "%s\n" "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  24969. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  24970. have_video=yes
  24971. # Check whether --enable-render-d3d was given.
  24972. if test ${enable_render_d3d+y}
  24973. then :
  24974. enableval=$enable_render_d3d;
  24975. else $as_nop
  24976. enable_render_d3d=yes
  24977. fi
  24978. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  24979. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  24980. SUMMARY_video="${SUMMARY_video} d3d9"
  24981. fi
  24982. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  24983. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  24984. SUMMARY_video="${SUMMARY_video} d3d11"
  24985. fi
  24986. if test x$enable_render_d3d = xyes -a x$have_d3d12 = xyes; then
  24987. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D12 1" >>confdefs.h
  24988. SUMMARY_video="${SUMMARY_video} d3d12"
  24989. fi
  24990. fi
  24991. # Set up files for the audio library
  24992. if test x$enable_audio = xyes; then
  24993. printf "%s\n" "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  24994. SUMMARY_audio="${SUMMARY_audio} winmm"
  24995. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  24996. if test x$have_dsound = xyes; then
  24997. printf "%s\n" "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  24998. SUMMARY_audio="${SUMMARY_audio} directsound"
  24999. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  25000. fi
  25001. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  25002. printf "%s\n" "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  25003. SUMMARY_audio="${SUMMARY_audio} wasapi"
  25004. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  25005. fi
  25006. have_audio=yes
  25007. fi
  25008. # Set up files for the joystick library
  25009. if test x$enable_joystick = xyes; then
  25010. printf "%s\n" "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  25011. if test x$have_dinput = xyes -o x$have_xinput = xyes -o x$have_wgi = xyes; then
  25012. if test x$have_xinput = xyes; then
  25013. printf "%s\n" "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  25014. fi
  25015. if test x$have_wgi = xyes; then
  25016. printf "%s\n" "#define SDL_JOYSTICK_WGI 1" >>confdefs.h
  25017. fi
  25018. if test x$have_dinput = xyes; then
  25019. printf "%s\n" "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  25020. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  25021. fi
  25022. fi
  25023. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  25024. have_joystick=yes
  25025. fi
  25026. if test x$enable_haptic = xyes; then
  25027. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  25028. if test x$have_xinput = xyes; then
  25029. printf "%s\n" "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  25030. fi
  25031. if test x$have_dinput = xyes; then
  25032. printf "%s\n" "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  25033. fi
  25034. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  25035. have_haptic=yes
  25036. fi
  25037. fi
  25038. # Set up files for the sensor library
  25039. ac_fn_c_check_header_compile "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
  25040. if test "x$ac_cv_header_sensorsapi_h" = xyes
  25041. then :
  25042. have_winsensors=yes
  25043. else $as_nop
  25044. have_winsensors=no
  25045. fi
  25046. if test x$have_winsensors = xyes; then
  25047. printf "%s\n" "#define HAVE_SENSORSAPI_H 1" >>confdefs.h
  25048. fi
  25049. if test x$enable_sensor = xyes -a x$have_winsensors = xyes; then
  25050. printf "%s\n" "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  25051. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  25052. have_sensor=yes
  25053. fi
  25054. # Set up files for the power library
  25055. if test x$enable_power = xyes; then
  25056. printf "%s\n" "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  25057. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  25058. have_power=yes
  25059. fi
  25060. # Set up files for the filesystem library
  25061. if test x$enable_filesystem = xyes; then
  25062. printf "%s\n" "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  25063. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  25064. have_filesystem=yes
  25065. fi
  25066. # Set up files for the thread library
  25067. if test x$enable_threads = xyes; then
  25068. printf "%s\n" "#define SDL_THREAD_GENERIC_COND_SUFFIX 1" >>confdefs.h
  25069. printf "%s\n" "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  25070. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  25071. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  25072. have_threads=yes
  25073. fi
  25074. # Set up files for the timer library
  25075. if test x$enable_timers = xyes; then
  25076. printf "%s\n" "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  25077. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  25078. have_timers=yes
  25079. fi
  25080. # Set up files for the shared object loading library
  25081. if test x$enable_loadso = xyes; then
  25082. printf "%s\n" "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  25083. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  25084. fi
  25085. # Set up the system libraries we need
  25086. if test -f /lib/w32api/libuuid.a; then
  25087. LIBUUID=/lib/w32api/libuuid.a
  25088. else
  25089. LIBUUID=-luuid
  25090. fi
  25091. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID"
  25092. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wc,-static-libgcc"
  25093. # The Windows platform requires special setup
  25094. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  25095. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  25096. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  25097. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  25098. # Check to see if this is a mingw or cygwin build
  25099. have_mingw32=
  25100. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  25101. printf %s "checking for main in -lmingw32... " >&6; }
  25102. if test ${ac_cv_lib_mingw32_main+y}
  25103. then :
  25104. printf %s "(cached) " >&6
  25105. else $as_nop
  25106. ac_check_lib_save_LIBS=$LIBS
  25107. LIBS="-lmingw32 $LIBS"
  25108. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25109. /* end confdefs.h. */
  25110. int
  25111. main (void)
  25112. {
  25113. return main ();
  25114. ;
  25115. return 0;
  25116. }
  25117. _ACEOF
  25118. if ac_fn_c_try_link "$LINENO"
  25119. then :
  25120. ac_cv_lib_mingw32_main=yes
  25121. else $as_nop
  25122. ac_cv_lib_mingw32_main=no
  25123. fi
  25124. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  25125. conftest$ac_exeext conftest.$ac_ext
  25126. LIBS=$ac_check_lib_save_LIBS
  25127. fi
  25128. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  25129. printf "%s\n" "$ac_cv_lib_mingw32_main" >&6; }
  25130. if test "x$ac_cv_lib_mingw32_main" = xyes
  25131. then :
  25132. have_mingw32=yes
  25133. fi
  25134. if test x$have_mingw32 = xyes; then
  25135. SDL_LIBS="-lmingw32 $SDL_LIBS"
  25136. else
  25137. SDL_LIBS="-lcygwin $SDL_LIBS"
  25138. fi
  25139. ;;
  25140. *-*-beos*)
  25141. as_fn_error $? "
  25142. *** BeOS support has been removed as of SDL 2.0.2.
  25143. " "$LINENO" 5
  25144. ;;
  25145. *-*-haiku*)
  25146. ARCH=haiku
  25147. ac_default_prefix=/boot/system
  25148. CheckDummyVideo
  25149. CheckOffscreenVideo
  25150. CheckDiskAudio
  25151. CheckDummyAudio
  25152. CheckDLOPEN
  25153. CheckO_CLOEXEC
  25154. CheckHaikuVideo
  25155. CheckHaikuGL
  25156. CheckPTHREAD
  25157. # Set up files for the audio library
  25158. if test x$enable_audio = xyes; then
  25159. printf "%s\n" "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  25160. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  25161. SUMMARY_audio="${SUMMARY_audio} haiku"
  25162. have_audio=yes
  25163. fi
  25164. # Set up files for the joystick library
  25165. if test x$enable_joystick = xyes; then
  25166. printf "%s\n" "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  25167. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  25168. have_joystick=yes
  25169. fi
  25170. # Set up files for the timer library
  25171. if test x$enable_timers = xyes; then
  25172. printf "%s\n" "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  25173. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  25174. have_timers=yes
  25175. fi
  25176. # Set up files for the system power library
  25177. if test x$enable_power = xyes; then
  25178. printf "%s\n" "#define SDL_POWER_HAIKU 1" >>confdefs.h
  25179. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  25180. have_power=yes
  25181. fi
  25182. # Set up files for the system filesystem library
  25183. if test x$enable_filesystem = xyes; then
  25184. printf "%s\n" "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  25185. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  25186. have_filesystem=yes
  25187. fi
  25188. # Set up files for the misc library
  25189. if test x$enable_misc = xyes; then
  25190. SOURCES="$SOURCES $srcdir/src/misc/haiku/*.cc"
  25191. have_misc=yes
  25192. fi
  25193. # Set up files for the locale library
  25194. if test x$enable_locale = xyes; then
  25195. SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
  25196. have_locale=yes
  25197. fi
  25198. # The Haiku platform requires special setup.
  25199. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  25200. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  25201. ;;
  25202. *-ios-*)
  25203. ARCH=ios
  25204. CheckVisibilityHidden
  25205. CheckWerror
  25206. CheckNoErrorDeprecatedDeclarationsWerror
  25207. CheckDeclarationAfterStatement
  25208. CheckDummyVideo
  25209. CheckOffscreenVideo
  25210. CheckDiskAudio
  25211. CheckDummyAudio
  25212. CheckDLOPEN
  25213. CheckO_CLOEXEC
  25214. CheckMETAL
  25215. CheckVulkan
  25216. CheckPTHREAD
  25217. # Set up files for the misc library
  25218. if test x$enable_misc = xyes; then
  25219. SOURCES="$SOURCES $srcdir/src/misc/ios/*.m"
  25220. have_misc=yes
  25221. fi
  25222. # Set up files for the locale library
  25223. if test x$enable_locale = xyes; then
  25224. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  25225. have_locale=yes
  25226. fi
  25227. # Set up files for the audio library
  25228. if test x$enable_audio = xyes; then
  25229. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  25230. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  25231. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  25232. have_audio=yes
  25233. fi
  25234. # Set up files for the joystick library
  25235. if test x$enable_joystick = xyes; then
  25236. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  25237. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  25238. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  25239. have_joystick=yes
  25240. else
  25241. # Need this code for accelerometer as joystick support
  25242. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  25243. fi
  25244. # Set up files for the haptic library
  25245. #if test x$enable_haptic = xyes; then
  25246. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  25247. # have_haptic=yes
  25248. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  25249. #fi
  25250. # Set up files for the sensor library
  25251. if test x$enable_sensor = xyes; then
  25252. printf "%s\n" "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  25253. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  25254. have_sensor=yes
  25255. fi
  25256. # Set up files for the power library
  25257. if test x$enable_power = xyes; then
  25258. printf "%s\n" "#define SDL_POWER_UIKIT 1" >>confdefs.h
  25259. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  25260. have_power=yes
  25261. fi
  25262. # Set up files for the filesystem library
  25263. if test x$enable_filesystem = xyes; then
  25264. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  25265. have_filesystem=yes
  25266. fi
  25267. # Set up additional files for the file library
  25268. if test x$enable_file = xyes; then
  25269. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  25270. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  25271. fi
  25272. # Set up files for the timer library
  25273. if test x$enable_timers = xyes; then
  25274. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25275. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25276. have_timers=yes
  25277. fi
  25278. # Set up other core UNIX files
  25279. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  25280. # The iOS platform requires special setup.
  25281. printf "%s\n" "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  25282. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  25283. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  25284. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  25285. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  25286. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  25287. SUMMARY_video="${SUMMARY_video} uikit"
  25288. have_video=yes
  25289. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  25290. if test x$enable_system_iconv = xyes; then
  25291. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  25292. fi
  25293. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  25294. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  25295. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  25296. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  25297. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  25298. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  25299. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  25300. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  25301. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  25302. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  25303. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  25304. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  25305. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  25306. fi
  25307. ;;
  25308. *-*-darwin* )
  25309. # This could be either full "Mac OS X", or plain "Darwin" which is
  25310. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  25311. # Next line is broken, and a few files below require Mac OS X (full)
  25312. ARCH=macosx
  25313. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  25314. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  25315. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  25316. CheckObjectiveCARC
  25317. CheckVisibilityHidden
  25318. CheckWerror
  25319. CheckNoErrorDeprecatedDeclarationsWerror
  25320. CheckDeclarationAfterStatement
  25321. CheckDummyVideo
  25322. CheckOffscreenVideo
  25323. CheckDiskAudio
  25324. CheckDummyAudio
  25325. CheckDLOPEN
  25326. CheckO_CLOEXEC
  25327. CheckCOCOA
  25328. CheckMETAL
  25329. CheckX11
  25330. CheckMacGL
  25331. CheckMacGLES
  25332. CheckGLX
  25333. CheckOpenGL
  25334. CheckVulkan
  25335. CheckPTHREAD
  25336. CheckHIDAPI
  25337. # Set up files for the misc library
  25338. if test x$enable_misc = xyes; then
  25339. SOURCES="$SOURCES $srcdir/src/misc/macosx/*.m"
  25340. have_misc=yes
  25341. fi
  25342. # Set up files for the locale library
  25343. if test x$enable_locale = xyes; then
  25344. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  25345. have_locale=yes
  25346. fi
  25347. # Set up files for the audio library
  25348. if test x$enable_audio = xyes; then
  25349. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  25350. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  25351. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  25352. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  25353. have_audio=yes
  25354. fi
  25355. # Set up files for the joystick library
  25356. if test x$enable_joystick = xyes; then
  25357. printf "%s\n" "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  25358. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  25359. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  25360. CheckJoystickMFI
  25361. have_joystick=yes
  25362. fi
  25363. # Set up files for the haptic library
  25364. if test x$enable_haptic = xyes; then
  25365. printf "%s\n" "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  25366. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  25367. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  25368. have_haptic=yes
  25369. fi
  25370. # Set up files for the power library
  25371. if test x$enable_power = xyes; then
  25372. printf "%s\n" "#define SDL_POWER_MACOSX 1" >>confdefs.h
  25373. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  25374. have_power=yes
  25375. fi
  25376. # Set up files for the filesystem library
  25377. if test x$enable_filesystem = xyes; then
  25378. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  25379. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  25380. have_filesystem=yes
  25381. fi
  25382. # Set up files for the timer library
  25383. if test x$enable_timers = xyes; then
  25384. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25385. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25386. have_timers=yes
  25387. fi
  25388. # Set up additional files for the file library
  25389. if test x$enable_file = xyes; then
  25390. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  25391. fi
  25392. # Set up other core UNIX files
  25393. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  25394. # The Mac OS X platform requires special setup.
  25395. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  25396. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  25397. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  25398. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  25399. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  25400. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  25401. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  25402. fi
  25403. ;;
  25404. *-nacl|*-pnacl)
  25405. ARCH=nacl
  25406. CheckNativeClient
  25407. CheckDummyAudio
  25408. CheckDummyVideo
  25409. CheckOffscreenVideo
  25410. CheckInputEvents
  25411. CheckPTHREAD
  25412. CheckO_CLOEXEC
  25413. # Set up files for the timer library
  25414. if test x$enable_timers = xyes; then
  25415. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25416. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25417. have_timers=yes
  25418. fi
  25419. if test x$enable_filesystem = xyes; then
  25420. printf "%s\n" "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  25421. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  25422. have_filesystem=yes
  25423. fi
  25424. ;;
  25425. *-*-emscripten* )
  25426. if test x$enable_video = xyes; then
  25427. printf "%s\n" "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  25428. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  25429. have_video=yes
  25430. SUMMARY_video="${SUMMARY_video} emscripten"
  25431. fi
  25432. if test x$enable_audio = xyes; then
  25433. printf "%s\n" "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  25434. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  25435. have_audio=yes
  25436. SUMMARY_audio="${SUMMARY_audio} emscripten"
  25437. fi
  25438. CheckVisibilityHidden
  25439. CheckWerror
  25440. CheckDeclarationAfterStatement
  25441. CheckDummyVideo
  25442. CheckOffscreenVideo
  25443. CheckDiskAudio
  25444. CheckDummyAudio
  25445. CheckPTHREAD
  25446. CheckDLOPEN
  25447. CheckClockGettime
  25448. CheckEmscriptenGLES
  25449. # Set up files for the misc library
  25450. if test x$enable_misc = xyes; then
  25451. SOURCES="$SOURCES $srcdir/src/misc/emscripten/*.c"
  25452. have_misc=yes
  25453. fi
  25454. # Set up files for the power library
  25455. if test x$enable_power = xyes; then
  25456. printf "%s\n" "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  25457. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  25458. have_power=yes
  25459. fi
  25460. # Set up files for the joystick library
  25461. if test x$enable_joystick = xyes; then
  25462. printf "%s\n" "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  25463. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  25464. have_joystick=yes
  25465. fi
  25466. # Set up files for the filesystem library
  25467. if test x$enable_filesystem = xyes; then
  25468. printf "%s\n" "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  25469. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  25470. have_filesystem=yes
  25471. fi
  25472. # Set up files for the timer library
  25473. if test x$enable_timers = xyes; then
  25474. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25475. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25476. have_timers=yes
  25477. fi
  25478. # Set up files for the locale library
  25479. if test x$enable_locale = xyes; then
  25480. SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
  25481. have_locale=yes
  25482. fi
  25483. ;;
  25484. *-*-riscos*)
  25485. ARCH=riscos
  25486. CheckVisibilityHidden
  25487. CheckWerror
  25488. CheckDeclarationAfterStatement
  25489. CheckDummyVideo
  25490. CheckOffscreenVideo
  25491. CheckDiskAudio
  25492. CheckDummyAudio
  25493. CheckDLOPEN
  25494. CheckO_CLOEXEC
  25495. CheckOSS
  25496. CheckPTHREAD
  25497. CheckClockGettime
  25498. # Set up files for the misc library
  25499. if test x$enable_misc = xyes; then
  25500. SOURCES="$SOURCES $srcdir/src/misc/riscos/*.c"
  25501. have_misc=yes
  25502. fi
  25503. # Set up files for the video library
  25504. if test x$enable_video = xyes; then
  25505. printf "%s\n" "#define SDL_VIDEO_DRIVER_RISCOS 1" >>confdefs.h
  25506. SOURCES="$SOURCES $srcdir/src/video/riscos/*.c"
  25507. have_video=yes
  25508. SUMMARY_video="${SUMMARY_video} riscos"
  25509. fi
  25510. # Set up files for the filesystem library
  25511. if test x$enable_filesystem = xyes; then
  25512. printf "%s\n" "#define SDL_FILESYSTEM_RISCOS 1" >>confdefs.h
  25513. SOURCES="$SOURCES $srcdir/src/filesystem/riscos/*.c"
  25514. have_filesystem=yes
  25515. fi
  25516. # Set up files for the timer library
  25517. if test x$enable_timers = xyes; then
  25518. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25519. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25520. have_timers=yes
  25521. fi
  25522. ;;
  25523. *-*-os2*)
  25524. ARCH=os2
  25525. if test "$build" != "$host"; then # cross-compiling
  25526. # Default cross-compile location
  25527. ac_default_prefix=/@unixroot/usr/local/cross-tools/$host
  25528. else
  25529. # Look for the location of the tools and install there
  25530. if test "$BUILD_PREFIX" != ""; then
  25531. ac_default_prefix=$BUILD_PREFIX
  25532. fi
  25533. fi
  25534. enable_static=no # disable static builds
  25535. EXTRA_CFLAGS="$EXTRA_CFLAGS -DBUILD_SDL -DOS2EMX_PLAIN_CHAR"
  25536. CheckOS2
  25537. CheckWerror
  25538. CheckDeclarationAfterStatement
  25539. CheckDummyVideo
  25540. CheckDiskAudio
  25541. CheckDummyAudio
  25542. CheckHIDAPI
  25543. # Set up the core platform files
  25544. SOURCES="$SOURCES $srcdir/src/core/os2/*.c"
  25545. if test x$enable_system_iconv = xyes; then
  25546. if test x$ac_cv_func_iconv != xyes -o x$ac_cv_header_iconv_h != xyes; then
  25547. SOURCES="$SOURCES $srcdir/src/core/os2/geniconv/*.c"
  25548. fi
  25549. fi
  25550. # Use the Unix locale APIs.
  25551. if test x$enable_locale = xyes; then
  25552. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  25553. have_locale=yes
  25554. fi
  25555. # Set up files for the video library
  25556. if test x$enable_video = xyes; then
  25557. printf "%s\n" "#define SDL_VIDEO_DRIVER_OS2 1" >>confdefs.h
  25558. SOURCES="$SOURCES $srcdir/src/video/os2/*.c"
  25559. have_video=yes
  25560. SUMMARY_video="${SUMMARY_video} OS/2"
  25561. fi
  25562. # Set up files for the audio library
  25563. if test x$enable_audio = xyes; then
  25564. printf "%s\n" "#define SDL_AUDIO_DRIVER_OS2 1" >>confdefs.h
  25565. SOURCES="$SOURCES $srcdir/src/audio/os2/*.c"
  25566. have_audio=yes
  25567. SUMMARY_audio="${SUMMARY_audio} OS/2"
  25568. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lmmpm2"
  25569. fi
  25570. # Set up files for the thread library
  25571. if test x$enable_threads = xyes; then
  25572. printf "%s\n" "#define SDL_THREAD_OS2 1" >>confdefs.h
  25573. SOURCES="$SOURCES $srcdir/src/thread/os2/*.c"
  25574. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  25575. have_threads=yes
  25576. fi
  25577. # Set up files for the timer library
  25578. if test x$enable_timers = xyes; then
  25579. printf "%s\n" "#define SDL_TIMER_OS2 1" >>confdefs.h
  25580. SOURCES="$SOURCES $srcdir/src/timer/os2/*.c"
  25581. have_timers=yes
  25582. fi
  25583. # Set up files for the shared object loading library
  25584. if test x$enable_loadso = xyes; then
  25585. printf "%s\n" "#define SDL_LOADSO_OS2 1" >>confdefs.h
  25586. SOURCES="$SOURCES $srcdir/src/loadso/os2/*.c"
  25587. have_loadso=yes
  25588. fi
  25589. # Set up files for the filesystem library
  25590. if test x$enable_filesystem = xyes; then
  25591. printf "%s\n" "#define SDL_FILESYSTEM_OS2 1" >>confdefs.h
  25592. SOURCES="$SOURCES $srcdir/src/filesystem/os2/*.c"
  25593. have_filesystem=yes
  25594. fi
  25595. # Set up files for the joystick library
  25596. if test x$enable_joystick = xyes; then
  25597. printf "%s\n" "#define SDL_JOYSTICK_OS2 1" >>confdefs.h
  25598. SOURCES="$SOURCES $srcdir/src/joystick/os2/*.c"
  25599. have_joystick=yes
  25600. fi
  25601. ;;
  25602. *)
  25603. as_fn_error $? "
  25604. *** Unsupported host: Please add to configure.ac
  25605. " "$LINENO" 5
  25606. ;;
  25607. esac
  25608. CheckVirtualJoystick
  25609. # Check whether to install sdl2-config
  25610. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
  25611. printf %s "checking whether to install sdl2-config... " >&6; }
  25612. # Check whether --enable-sdl2-config was given.
  25613. if test ${enable_sdl2_config+y}
  25614. then :
  25615. enableval=$enable_sdl2_config; case "${enableval}" in
  25616. yes) enable_sdl2_config="TRUE" ;;
  25617. no) enable_sdl2_config="FALSE" ;;
  25618. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
  25619. esac
  25620. else $as_nop
  25621. enable_sdl2_config="TRUE"
  25622. fi
  25623. if test "$enable_sdl2_config" = "TRUE"; then
  25624. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25625. printf "%s\n" "yes" >&6; }
  25626. else
  25627. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25628. printf "%s\n" "no" >&6; }
  25629. fi
  25630. INSTALL_SDL2_CONFIG=$enable_sdl2_config
  25631. # Check whether --enable-vendor-info was given.
  25632. if test ${enable_vendor_info+y}
  25633. then :
  25634. enableval=$enable_vendor_info; enable_vendor_info="$enableval"
  25635. else $as_nop
  25636. enable_vendor_info=
  25637. fi
  25638. if test "$enable_vendor_info" = no
  25639. then :
  25640. enable_vendor_info=
  25641. fi
  25642. SDL_VENDOR_INFO=$enable_vendor_info
  25643. # Verify that we have all the platform specific files we need
  25644. if test x$have_audio != xyes; then
  25645. if test x$enable_audio = xyes; then
  25646. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  25647. fi
  25648. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  25649. fi
  25650. if test x$have_video != xyes; then
  25651. if test x$enable_video = xyes; then
  25652. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  25653. fi
  25654. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  25655. fi
  25656. if test x$have_misc != xyes; then
  25657. if test x$enable_misc = xyes; then
  25658. printf "%s\n" "#define SDL_MISC_DUMMY 1" >>confdefs.h
  25659. fi
  25660. SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
  25661. fi
  25662. if test x$have_locale != xyes; then
  25663. if test x$enable_locale = xyes; then
  25664. printf "%s\n" "#define SDL_LOCALE_DUMMY 1" >>confdefs.h
  25665. fi
  25666. SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
  25667. fi
  25668. if test x$have_joystick != xyes; then
  25669. if test x$enable_joystick = xyes; then
  25670. printf "%s\n" "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  25671. fi
  25672. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  25673. fi
  25674. if test x$have_haptic != xyes; then
  25675. if test x$enable_haptic = xyes; then
  25676. printf "%s\n" "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  25677. fi
  25678. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  25679. fi
  25680. if test x$have_sensor != xyes; then
  25681. if test x$enable_sensor = xyes; then
  25682. printf "%s\n" "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  25683. fi
  25684. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  25685. fi
  25686. if test x$have_threads != xyes; then
  25687. if test x$enable_threads = xyes; then
  25688. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  25689. fi
  25690. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  25691. fi
  25692. if test x$have_timers != xyes; then
  25693. if test x$enable_timers = xyes; then
  25694. printf "%s\n" "#define SDL_TIMER_DUMMY 1" >>confdefs.h
  25695. fi
  25696. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  25697. fi
  25698. if test x$have_filesystem != xyes; then
  25699. if test x$enable_filesystem = xyes; then
  25700. printf "%s\n" "#define SDL_FILESYSTEM_DUMMY 1" >>confdefs.h
  25701. fi
  25702. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  25703. fi
  25704. if test x$have_loadso != xyes; then
  25705. if test x$enable_loadso = xyes; then
  25706. printf "%s\n" "#define SDL_LOADSO_DUMMY 1" >>confdefs.h
  25707. fi
  25708. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  25709. fi
  25710. if test x$SDLMAIN_SOURCES = x; then
  25711. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  25712. fi
  25713. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  25714. if test x$video_wayland = xyes; then
  25715. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do printf '%s' "\$p" |sed 's,\\.xml\$, ,g' ; done`
  25716. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-protocol.c " ; done`
  25717. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-client-protocol.h " ; done`
  25718. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  25719. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  25720. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  25721. echo ;\
  25722. printf '%s\n' "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  25723. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  25724. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  25725. echo ;\
  25726. printf '%s\n' "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  25727. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  25728. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) \\$(WAYLAND_SCANNER_CODE_MODE) \\$< \\$@" ;\
  25729. echo ;\
  25730. printf '%s\n' "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  25731. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(objects)" ;\
  25732. printf '%s\n' " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  25733. done ;\
  25734. echo ;\
  25735. for s in $WAYLAND_SOURCES ; do printf '%s' "\$s:" ; printf ' \$(gen)/%s-client-protocol.h' $WAYLAND_PROTOCOLS ; echo ; done ; echo`
  25736. fi
  25737. OBJECTS=`echo $SOURCES`
  25738. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  25739. for EXT in asm cc m c S; do
  25740. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  25741. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  25742. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  25743. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25744. done
  25745. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25746. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  25747. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  25748. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  25749. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  25750. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  25751. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  25752. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  25753. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  25754. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25755. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  25756. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  25757. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25758. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  25759. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  25760. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25761. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  25762. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  25763. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25764. # Set runtime shared library paths as needed
  25765. if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
  25766. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  25767. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  25768. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  25769. printf %s "checking for linker option --enable-new-dtags... " >&6; }
  25770. have_enable_new_dtags=no
  25771. save_LDFLAGS="$LDFLAGS"
  25772. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  25773. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25774. /* end confdefs.h. */
  25775. int
  25776. main (void)
  25777. {
  25778. ;
  25779. return 0;
  25780. }
  25781. _ACEOF
  25782. if ac_fn_c_try_link "$LINENO"
  25783. then :
  25784. have_enable_new_dtags=yes
  25785. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  25786. fi
  25787. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  25788. conftest$ac_exeext conftest.$ac_ext
  25789. LDFLAGS="$save_LDFLAGS"
  25790. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  25791. printf "%s\n" "$have_enable_new_dtags" >&6; }
  25792. fi
  25793. if test $ARCH = solaris; then
  25794. SDL_RLD_FLAGS="-R\${libdir}"
  25795. fi
  25796. else
  25797. SDL_RLD_FLAGS=""
  25798. fi
  25799. SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
  25800. pkg_cmakedir='$libdir/cmake/SDL2'
  25801. for _lcl_i in pkg_cmakedir:prefix:cmake_prefix_relpath bindir:prefix:bin_prefix_relpath; do
  25802. _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
  25803. _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
  25804. _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
  25805. _lcl_receval="$_lcl_from"
  25806. _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  25807. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  25808. _lcl_receval_old=''
  25809. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  25810. _lcl_receval_old="$_lcl_receval"
  25811. eval _lcl_receval="\"$_lcl_receval\""
  25812. done
  25813. echo "$_lcl_receval")`
  25814. _lcl_receval="$_lcl_to"
  25815. _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  25816. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  25817. _lcl_receval_old=''
  25818. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  25819. _lcl_receval_old="$_lcl_receval"
  25820. eval _lcl_receval="\"$_lcl_receval\""
  25821. done
  25822. echo "$_lcl_receval")`
  25823. _lcl_notation="$_lcl_from$_lcl_to"
  25824. case ":$_lcl_from:" in
  25825. # change empty paths to '.'
  25826. ::) _lcl_from='.' ;;
  25827. # strip trailing slashes
  25828. :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
  25829. :*:) ;;
  25830. esac
  25831. # squeeze repeated slashes
  25832. case '/' in
  25833. # if the path contains any backslashes, turn slashes into backslashes
  25834. *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25835. # if the path contains slashes, also turn backslashes into slashes
  25836. *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25837. esac
  25838. case ":$_lcl_to:" in
  25839. # change empty paths to '.'
  25840. ::) _lcl_to='.' ;;
  25841. # strip trailing slashes
  25842. :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
  25843. :*:) ;;
  25844. esac
  25845. # squeeze repeated slashes
  25846. case '/' in
  25847. # if the path contains any backslashes, turn slashes into backslashes
  25848. *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25849. # if the path contains slashes, also turn backslashes into slashes
  25850. *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25851. esac
  25852. _lcl_common_prefix=''
  25853. _lcl_second_prefix_match=''
  25854. while test "$_lcl_second_prefix_match" != 0; do
  25855. _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
  25856. _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
  25857. if test "$_lcl_second_prefix_match" != 0; then
  25858. if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
  25859. _lcl_common_prefix="$_lcl_first_prefix"
  25860. else
  25861. _lcl_second_prefix_match=0
  25862. fi
  25863. fi
  25864. done
  25865. _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
  25866. _lcl_first_rel=''
  25867. _lcl_tmp='xxx'
  25868. while test "$_lcl_tmp" != ''; do
  25869. _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
  25870. if test "$_lcl_first_suffix" != ''; then
  25871. _lcl_first_suffix="$_lcl_tmp"
  25872. _lcl_first_rel="../$_lcl_first_rel"
  25873. fi
  25874. done
  25875. _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
  25876. _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
  25877. case ":$_lcl_result_tmp:" in
  25878. # change empty paths to '.'
  25879. ::) _lcl_result_tmp='.' ;;
  25880. # strip trailing slashes
  25881. :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
  25882. :*:) ;;
  25883. esac
  25884. # squeeze repeated slashes
  25885. case "$_lcl_notation" in
  25886. # if the path contains any backslashes, turn slashes into backslashes
  25887. *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25888. # if the path contains slashes, also turn backslashes into slashes
  25889. *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25890. esac
  25891. eval $_lcl_result_var='$_lcl_result_tmp'
  25892. done
  25893. PKGCONFIG_DEPENDS=""
  25894. if test x$enable_shared = xyes; then
  25895. PKGCONFIG_LIBS_PRIV="
  25896. Libs.private:"
  25897. ENABLE_SHARED_TRUE=
  25898. ENABLE_SHARED_FALSE="#"
  25899. else
  25900. PKGCONFIG_LIBS_PRIV=
  25901. ENABLE_SHARED_TRUE="#"
  25902. ENABLE_SHARED_FALSE=
  25903. fi
  25904. if test x$enable_static = xyes; then
  25905. ENABLE_STATIC_TRUE=
  25906. ENABLE_STATIC_FALSE="#"
  25907. else
  25908. ENABLE_STATIC_TRUE="#"
  25909. ENABLE_STATIC_FALSE=
  25910. fi
  25911. cat >Makefile.rules <<__EOF__
  25912. # Build rules for objects
  25913. -include \$(OBJECTS:.lo=.d)
  25914. # Special dependency for SDL.c, since it depends on SDL_revision.h
  25915. $srcdir/src/SDL.c: update-revision
  25916. $DEPENDS
  25917. $VERSION_DEPENDS
  25918. $SDLMAIN_DEPENDS
  25919. $SDLTEST_DEPENDS
  25920. $WAYLAND_PROTOCOLS_DEPENDS
  25921. __EOF__
  25922. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake sdl2-config-version.cmake SDL2.spec sdl2.pc"
  25923. ac_config_commands="$ac_config_commands sdl2_config"
  25924. SUMMARY="SDL2 Configure Summary:\n"
  25925. if test x$enable_shared = xyes; then
  25926. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  25927. fi
  25928. if test x$enable_static = xyes; then
  25929. SUMMARY="${SUMMARY}Building Static Libraries\n"
  25930. fi
  25931. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  25932. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  25933. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  25934. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  25935. if test x$have_x = xyes; then
  25936. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  25937. fi
  25938. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  25939. if test x$have_joystick_virtual = xyes; then
  25940. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  25941. else
  25942. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  25943. fi
  25944. if test x$have_samplerate_h_hdr = xyes; then
  25945. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  25946. else
  25947. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  25948. fi
  25949. if test x$have_libudev_h_hdr = xyes; then
  25950. SUMMARY="${SUMMARY}Using libudev : YES\n"
  25951. else
  25952. SUMMARY="${SUMMARY}Using libudev : NO\n"
  25953. fi
  25954. if test x$have_dbus_dbus_h_hdr = xyes; then
  25955. SUMMARY="${SUMMARY}Using dbus : YES\n"
  25956. else
  25957. SUMMARY="${SUMMARY}Using dbus : NO\n"
  25958. fi
  25959. if test x$enable_ime = xyes; then
  25960. SUMMARY="${SUMMARY}Using ime : YES\n"
  25961. else
  25962. SUMMARY="${SUMMARY}Using ime : NO\n"
  25963. fi
  25964. if test x$have_ibus_ibus_h_hdr = xyes; then
  25965. SUMMARY="${SUMMARY}Using ibus : YES\n"
  25966. else
  25967. SUMMARY="${SUMMARY}Using ibus : NO\n"
  25968. fi
  25969. if test x$have_fcitx = xyes; then
  25970. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  25971. else
  25972. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  25973. fi
  25974. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  25975. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  25976. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  25977. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  25978. SUMMARY="${SUMMARY}configure script with:\n"
  25979. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  25980. fi
  25981. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  25982. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  25983. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  25984. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  25985. SUMMARY="${SUMMARY}configure script with:\n"
  25986. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  25987. fi
  25988. ac_config_commands="$ac_config_commands summary"
  25989. cat >confcache <<\_ACEOF
  25990. # This file is a shell script that caches the results of configure
  25991. # tests run on this system so they can be shared between configure
  25992. # scripts and configure runs, see configure's option --config-cache.
  25993. # It is not useful on other systems. If it contains results you don't
  25994. # want to keep, you may remove or edit it.
  25995. #
  25996. # config.status only pays attention to the cache file if you give it
  25997. # the --recheck option to rerun configure.
  25998. #
  25999. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  26000. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  26001. # following values.
  26002. _ACEOF
  26003. # The following way of writing the cache mishandles newlines in values,
  26004. # but we know of no workaround that is simple, portable, and efficient.
  26005. # So, we kill variables containing newlines.
  26006. # Ultrix sh set writes to stderr and can't be redirected directly,
  26007. # and sets the high bit in the cache file unless we assign to the vars.
  26008. (
  26009. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  26010. eval ac_val=\$$ac_var
  26011. case $ac_val in #(
  26012. *${as_nl}*)
  26013. case $ac_var in #(
  26014. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  26015. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  26016. esac
  26017. case $ac_var in #(
  26018. _ | IFS | as_nl) ;; #(
  26019. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  26020. *) { eval $ac_var=; unset $ac_var;} ;;
  26021. esac ;;
  26022. esac
  26023. done
  26024. (set) 2>&1 |
  26025. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  26026. *${as_nl}ac_space=\ *)
  26027. # `set' does not quote correctly, so add quotes: double-quote
  26028. # substitution turns \\\\ into \\, and sed turns \\ into \.
  26029. sed -n \
  26030. "s/'/'\\\\''/g;
  26031. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  26032. ;; #(
  26033. *)
  26034. # `set' quotes correctly as required by POSIX, so do not add quotes.
  26035. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  26036. ;;
  26037. esac |
  26038. sort
  26039. ) |
  26040. sed '
  26041. /^ac_cv_env_/b end
  26042. t clear
  26043. :clear
  26044. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  26045. t end
  26046. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  26047. :end' >>confcache
  26048. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  26049. if test -w "$cache_file"; then
  26050. if test "x$cache_file" != "x/dev/null"; then
  26051. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  26052. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  26053. if test ! -f "$cache_file" || test -h "$cache_file"; then
  26054. cat confcache >"$cache_file"
  26055. else
  26056. case $cache_file in #(
  26057. */* | ?:*)
  26058. mv -f confcache "$cache_file"$$ &&
  26059. mv -f "$cache_file"$$ "$cache_file" ;; #(
  26060. *)
  26061. mv -f confcache "$cache_file" ;;
  26062. esac
  26063. fi
  26064. fi
  26065. else
  26066. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  26067. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  26068. fi
  26069. fi
  26070. rm -f confcache
  26071. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  26072. # Let make expand exec_prefix.
  26073. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  26074. DEFS=-DHAVE_CONFIG_H
  26075. ac_libobjs=
  26076. ac_ltlibobjs=
  26077. U=
  26078. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  26079. # 1. Remove the extension, and $U if already installed.
  26080. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  26081. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  26082. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  26083. # will be set to the directory where LIBOBJS objects are built.
  26084. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  26085. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  26086. done
  26087. LIBOBJS=$ac_libobjs
  26088. LTLIBOBJS=$ac_ltlibobjs
  26089. : "${CONFIG_STATUS=./config.status}"
  26090. ac_write_fail=0
  26091. ac_clean_files_save=$ac_clean_files
  26092. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  26093. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  26094. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  26095. as_write_fail=0
  26096. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  26097. #! $SHELL
  26098. # Generated by $as_me.
  26099. # Run this file to recreate the current configuration.
  26100. # Compiler output produced by configure, useful for debugging
  26101. # configure, is in config.log if it exists.
  26102. debug=false
  26103. ac_cs_recheck=false
  26104. ac_cs_silent=false
  26105. SHELL=\${CONFIG_SHELL-$SHELL}
  26106. export SHELL
  26107. _ASEOF
  26108. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  26109. ## -------------------- ##
  26110. ## M4sh Initialization. ##
  26111. ## -------------------- ##
  26112. # Be more Bourne compatible
  26113. DUALCASE=1; export DUALCASE # for MKS sh
  26114. as_nop=:
  26115. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  26116. then :
  26117. emulate sh
  26118. NULLCMD=:
  26119. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  26120. # is contrary to our usage. Disable this feature.
  26121. alias -g '${1+"$@"}'='"$@"'
  26122. setopt NO_GLOB_SUBST
  26123. else $as_nop
  26124. case `(set -o) 2>/dev/null` in #(
  26125. *posix*) :
  26126. set -o posix ;; #(
  26127. *) :
  26128. ;;
  26129. esac
  26130. fi
  26131. # Reset variables that may have inherited troublesome values from
  26132. # the environment.
  26133. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  26134. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  26135. # side effect of setting IFS to empty, thus disabling word splitting.)
  26136. # Quoting is to prevent editors from complaining about space-tab.
  26137. as_nl='
  26138. '
  26139. export as_nl
  26140. IFS=" "" $as_nl"
  26141. PS1='$ '
  26142. PS2='> '
  26143. PS4='+ '
  26144. # Ensure predictable behavior from utilities with locale-dependent output.
  26145. LC_ALL=C
  26146. export LC_ALL
  26147. LANGUAGE=C
  26148. export LANGUAGE
  26149. # We cannot yet rely on "unset" to work, but we need these variables
  26150. # to be unset--not just set to an empty or harmless value--now, to
  26151. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  26152. # also avoids known problems related to "unset" and subshell syntax
  26153. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  26154. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  26155. do eval test \${$as_var+y} \
  26156. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  26157. done
  26158. # Ensure that fds 0, 1, and 2 are open.
  26159. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  26160. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  26161. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  26162. # The user is always right.
  26163. if ${PATH_SEPARATOR+false} :; then
  26164. PATH_SEPARATOR=:
  26165. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  26166. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  26167. PATH_SEPARATOR=';'
  26168. }
  26169. fi
  26170. # Find who we are. Look in the path if we contain no directory separator.
  26171. as_myself=
  26172. case $0 in #((
  26173. *[\\/]* ) as_myself=$0 ;;
  26174. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26175. for as_dir in $PATH
  26176. do
  26177. IFS=$as_save_IFS
  26178. case $as_dir in #(((
  26179. '') as_dir=./ ;;
  26180. */) ;;
  26181. *) as_dir=$as_dir/ ;;
  26182. esac
  26183. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  26184. done
  26185. IFS=$as_save_IFS
  26186. ;;
  26187. esac
  26188. # We did not find ourselves, most probably we were run as `sh COMMAND'
  26189. # in which case we are not to be found in the path.
  26190. if test "x$as_myself" = x; then
  26191. as_myself=$0
  26192. fi
  26193. if test ! -f "$as_myself"; then
  26194. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  26195. exit 1
  26196. fi
  26197. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  26198. # ----------------------------------------
  26199. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  26200. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  26201. # script with STATUS, using 1 if that was 0.
  26202. as_fn_error ()
  26203. {
  26204. as_status=$1; test $as_status -eq 0 && as_status=1
  26205. if test "$4"; then
  26206. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  26207. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  26208. fi
  26209. printf "%s\n" "$as_me: error: $2" >&2
  26210. as_fn_exit $as_status
  26211. } # as_fn_error
  26212. # as_fn_set_status STATUS
  26213. # -----------------------
  26214. # Set $? to STATUS, without forking.
  26215. as_fn_set_status ()
  26216. {
  26217. return $1
  26218. } # as_fn_set_status
  26219. # as_fn_exit STATUS
  26220. # -----------------
  26221. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  26222. as_fn_exit ()
  26223. {
  26224. set +e
  26225. as_fn_set_status $1
  26226. exit $1
  26227. } # as_fn_exit
  26228. # as_fn_unset VAR
  26229. # ---------------
  26230. # Portably unset VAR.
  26231. as_fn_unset ()
  26232. {
  26233. { eval $1=; unset $1;}
  26234. }
  26235. as_unset=as_fn_unset
  26236. # as_fn_append VAR VALUE
  26237. # ----------------------
  26238. # Append the text in VALUE to the end of the definition contained in VAR. Take
  26239. # advantage of any shell optimizations that allow amortized linear growth over
  26240. # repeated appends, instead of the typical quadratic growth present in naive
  26241. # implementations.
  26242. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  26243. then :
  26244. eval 'as_fn_append ()
  26245. {
  26246. eval $1+=\$2
  26247. }'
  26248. else $as_nop
  26249. as_fn_append ()
  26250. {
  26251. eval $1=\$$1\$2
  26252. }
  26253. fi # as_fn_append
  26254. # as_fn_arith ARG...
  26255. # ------------------
  26256. # Perform arithmetic evaluation on the ARGs, and store the result in the
  26257. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  26258. # must be portable across $(()) and expr.
  26259. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  26260. then :
  26261. eval 'as_fn_arith ()
  26262. {
  26263. as_val=$(( $* ))
  26264. }'
  26265. else $as_nop
  26266. as_fn_arith ()
  26267. {
  26268. as_val=`expr "$@" || test $? -eq 1`
  26269. }
  26270. fi # as_fn_arith
  26271. if expr a : '\(a\)' >/dev/null 2>&1 &&
  26272. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  26273. as_expr=expr
  26274. else
  26275. as_expr=false
  26276. fi
  26277. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  26278. as_basename=basename
  26279. else
  26280. as_basename=false
  26281. fi
  26282. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  26283. as_dirname=dirname
  26284. else
  26285. as_dirname=false
  26286. fi
  26287. as_me=`$as_basename -- "$0" ||
  26288. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  26289. X"$0" : 'X\(//\)$' \| \
  26290. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  26291. printf "%s\n" X/"$0" |
  26292. sed '/^.*\/\([^/][^/]*\)\/*$/{
  26293. s//\1/
  26294. q
  26295. }
  26296. /^X\/\(\/\/\)$/{
  26297. s//\1/
  26298. q
  26299. }
  26300. /^X\/\(\/\).*/{
  26301. s//\1/
  26302. q
  26303. }
  26304. s/.*/./; q'`
  26305. # Avoid depending upon Character Ranges.
  26306. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  26307. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  26308. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  26309. as_cr_digits='0123456789'
  26310. as_cr_alnum=$as_cr_Letters$as_cr_digits
  26311. # Determine whether it's possible to make 'echo' print without a newline.
  26312. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  26313. # for compatibility with existing Makefiles.
  26314. ECHO_C= ECHO_N= ECHO_T=
  26315. case `echo -n x` in #(((((
  26316. -n*)
  26317. case `echo 'xy\c'` in
  26318. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  26319. xy) ECHO_C='\c';;
  26320. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  26321. ECHO_T=' ';;
  26322. esac;;
  26323. *)
  26324. ECHO_N='-n';;
  26325. esac
  26326. # For backward compatibility with old third-party macros, we provide
  26327. # the shell variables $as_echo and $as_echo_n. New code should use
  26328. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  26329. as_echo='printf %s\n'
  26330. as_echo_n='printf %s'
  26331. rm -f conf$$ conf$$.exe conf$$.file
  26332. if test -d conf$$.dir; then
  26333. rm -f conf$$.dir/conf$$.file
  26334. else
  26335. rm -f conf$$.dir
  26336. mkdir conf$$.dir 2>/dev/null
  26337. fi
  26338. if (echo >conf$$.file) 2>/dev/null; then
  26339. if ln -s conf$$.file conf$$ 2>/dev/null; then
  26340. as_ln_s='ln -s'
  26341. # ... but there are two gotchas:
  26342. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  26343. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  26344. # In both cases, we have to default to `cp -pR'.
  26345. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  26346. as_ln_s='cp -pR'
  26347. elif ln conf$$.file conf$$ 2>/dev/null; then
  26348. as_ln_s=ln
  26349. else
  26350. as_ln_s='cp -pR'
  26351. fi
  26352. else
  26353. as_ln_s='cp -pR'
  26354. fi
  26355. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  26356. rmdir conf$$.dir 2>/dev/null
  26357. # as_fn_mkdir_p
  26358. # -------------
  26359. # Create "$as_dir" as a directory, including parents if necessary.
  26360. as_fn_mkdir_p ()
  26361. {
  26362. case $as_dir in #(
  26363. -*) as_dir=./$as_dir;;
  26364. esac
  26365. test -d "$as_dir" || eval $as_mkdir_p || {
  26366. as_dirs=
  26367. while :; do
  26368. case $as_dir in #(
  26369. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  26370. *) as_qdir=$as_dir;;
  26371. esac
  26372. as_dirs="'$as_qdir' $as_dirs"
  26373. as_dir=`$as_dirname -- "$as_dir" ||
  26374. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  26375. X"$as_dir" : 'X\(//\)[^/]' \| \
  26376. X"$as_dir" : 'X\(//\)$' \| \
  26377. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  26378. printf "%s\n" X"$as_dir" |
  26379. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  26380. s//\1/
  26381. q
  26382. }
  26383. /^X\(\/\/\)[^/].*/{
  26384. s//\1/
  26385. q
  26386. }
  26387. /^X\(\/\/\)$/{
  26388. s//\1/
  26389. q
  26390. }
  26391. /^X\(\/\).*/{
  26392. s//\1/
  26393. q
  26394. }
  26395. s/.*/./; q'`
  26396. test -d "$as_dir" && break
  26397. done
  26398. test -z "$as_dirs" || eval "mkdir $as_dirs"
  26399. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  26400. } # as_fn_mkdir_p
  26401. if mkdir -p . 2>/dev/null; then
  26402. as_mkdir_p='mkdir -p "$as_dir"'
  26403. else
  26404. test -d ./-p && rmdir ./-p
  26405. as_mkdir_p=false
  26406. fi
  26407. # as_fn_executable_p FILE
  26408. # -----------------------
  26409. # Test if FILE is an executable regular file.
  26410. as_fn_executable_p ()
  26411. {
  26412. test -f "$1" && test -x "$1"
  26413. } # as_fn_executable_p
  26414. as_test_x='test -x'
  26415. as_executable_p=as_fn_executable_p
  26416. # Sed expression to map a string onto a valid CPP name.
  26417. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  26418. # Sed expression to map a string onto a valid variable name.
  26419. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  26420. exec 6>&1
  26421. ## ----------------------------------- ##
  26422. ## Main body of $CONFIG_STATUS script. ##
  26423. ## ----------------------------------- ##
  26424. _ASEOF
  26425. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  26426. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26427. # Save the log message, to keep $0 and so on meaningful, and to
  26428. # report actual input values of CONFIG_FILES etc. instead of their
  26429. # values after options handling.
  26430. ac_log="
  26431. This file was extended by $as_me, which was
  26432. generated by GNU Autoconf 2.71. Invocation command line was
  26433. CONFIG_FILES = $CONFIG_FILES
  26434. CONFIG_HEADERS = $CONFIG_HEADERS
  26435. CONFIG_LINKS = $CONFIG_LINKS
  26436. CONFIG_COMMANDS = $CONFIG_COMMANDS
  26437. $ $0 $@
  26438. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  26439. "
  26440. _ACEOF
  26441. case $ac_config_files in *"
  26442. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  26443. esac
  26444. case $ac_config_headers in *"
  26445. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  26446. esac
  26447. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26448. # Files that config.status was made for.
  26449. config_files="$ac_config_files"
  26450. config_headers="$ac_config_headers"
  26451. config_commands="$ac_config_commands"
  26452. _ACEOF
  26453. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26454. ac_cs_usage="\
  26455. \`$as_me' instantiates files and other configuration actions
  26456. from templates according to the current configuration. Unless the files
  26457. and actions are specified as TAGs, all are instantiated by default.
  26458. Usage: $0 [OPTION]... [TAG]...
  26459. -h, --help print this help, then exit
  26460. -V, --version print version number and configuration settings, then exit
  26461. --config print configuration, then exit
  26462. -q, --quiet, --silent
  26463. do not print progress messages
  26464. -d, --debug don't remove temporary files
  26465. --recheck update $as_me by reconfiguring in the same conditions
  26466. --file=FILE[:TEMPLATE]
  26467. instantiate the configuration file FILE
  26468. --header=FILE[:TEMPLATE]
  26469. instantiate the configuration header FILE
  26470. Configuration files:
  26471. $config_files
  26472. Configuration headers:
  26473. $config_headers
  26474. Configuration commands:
  26475. $config_commands
  26476. Report bugs to the package provider."
  26477. _ACEOF
  26478. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  26479. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  26480. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26481. ac_cs_config='$ac_cs_config_escaped'
  26482. ac_cs_version="\\
  26483. config.status
  26484. configured by $0, generated by GNU Autoconf 2.71,
  26485. with options \\"\$ac_cs_config\\"
  26486. Copyright (C) 2021 Free Software Foundation, Inc.
  26487. This config.status script is free software; the Free Software Foundation
  26488. gives unlimited permission to copy, distribute and modify it."
  26489. ac_pwd='$ac_pwd'
  26490. srcdir='$srcdir'
  26491. INSTALL='$INSTALL'
  26492. AWK='$AWK'
  26493. test -n "\$AWK" || AWK=awk
  26494. _ACEOF
  26495. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26496. # The default lists apply if the user does not specify any file.
  26497. ac_need_defaults=:
  26498. while test $# != 0
  26499. do
  26500. case $1 in
  26501. --*=?*)
  26502. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  26503. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  26504. ac_shift=:
  26505. ;;
  26506. --*=)
  26507. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  26508. ac_optarg=
  26509. ac_shift=:
  26510. ;;
  26511. *)
  26512. ac_option=$1
  26513. ac_optarg=$2
  26514. ac_shift=shift
  26515. ;;
  26516. esac
  26517. case $ac_option in
  26518. # Handling of the options.
  26519. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  26520. ac_cs_recheck=: ;;
  26521. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  26522. printf "%s\n" "$ac_cs_version"; exit ;;
  26523. --config | --confi | --conf | --con | --co | --c )
  26524. printf "%s\n" "$ac_cs_config"; exit ;;
  26525. --debug | --debu | --deb | --de | --d | -d )
  26526. debug=: ;;
  26527. --file | --fil | --fi | --f )
  26528. $ac_shift
  26529. case $ac_optarg in
  26530. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  26531. '') as_fn_error $? "missing file argument" ;;
  26532. esac
  26533. as_fn_append CONFIG_FILES " '$ac_optarg'"
  26534. ac_need_defaults=false;;
  26535. --header | --heade | --head | --hea )
  26536. $ac_shift
  26537. case $ac_optarg in
  26538. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  26539. esac
  26540. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  26541. ac_need_defaults=false;;
  26542. --he | --h)
  26543. # Conflict between --help and --header
  26544. as_fn_error $? "ambiguous option: \`$1'
  26545. Try \`$0 --help' for more information.";;
  26546. --help | --hel | -h )
  26547. printf "%s\n" "$ac_cs_usage"; exit ;;
  26548. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  26549. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  26550. ac_cs_silent=: ;;
  26551. # This is an error.
  26552. -*) as_fn_error $? "unrecognized option: \`$1'
  26553. Try \`$0 --help' for more information." ;;
  26554. *) as_fn_append ac_config_targets " $1"
  26555. ac_need_defaults=false ;;
  26556. esac
  26557. shift
  26558. done
  26559. ac_configure_extra_args=
  26560. if $ac_cs_silent; then
  26561. exec 6>/dev/null
  26562. ac_configure_extra_args="$ac_configure_extra_args --silent"
  26563. fi
  26564. _ACEOF
  26565. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26566. if \$ac_cs_recheck; then
  26567. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  26568. shift
  26569. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  26570. CONFIG_SHELL='$SHELL'
  26571. export CONFIG_SHELL
  26572. exec "\$@"
  26573. fi
  26574. _ACEOF
  26575. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26576. exec 5>>config.log
  26577. {
  26578. echo
  26579. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  26580. ## Running $as_me. ##
  26581. _ASBOX
  26582. printf "%s\n" "$ac_log"
  26583. } >&5
  26584. _ACEOF
  26585. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26586. #
  26587. # INIT-COMMANDS
  26588. #
  26589. # The HP-UX ksh and POSIX shell print the target directory to stdout
  26590. # if CDPATH is set.
  26591. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  26592. sed_quote_subst='$sed_quote_subst'
  26593. double_quote_subst='$double_quote_subst'
  26594. delay_variable_subst='$delay_variable_subst'
  26595. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  26596. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  26597. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  26598. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  26599. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  26600. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  26601. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  26602. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  26603. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  26604. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  26605. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  26606. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  26607. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  26608. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  26609. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  26610. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  26611. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  26612. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  26613. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  26614. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  26615. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  26616. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  26617. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  26618. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  26619. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  26620. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  26621. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  26622. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  26623. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  26624. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  26625. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  26626. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  26627. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  26628. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  26629. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  26630. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  26631. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  26632. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  26633. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  26634. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  26635. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  26636. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  26637. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  26638. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  26639. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  26640. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  26641. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  26642. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  26643. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  26644. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  26645. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  26646. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  26647. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  26648. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  26649. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  26650. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  26651. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  26652. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  26653. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  26654. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
  26655. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  26656. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  26657. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  26658. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  26659. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  26660. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  26661. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  26662. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  26663. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  26664. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  26665. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  26666. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  26667. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  26668. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  26669. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  26670. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  26671. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  26672. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  26673. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  26674. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  26675. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  26676. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  26677. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  26678. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  26679. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  26680. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  26681. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  26682. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  26683. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  26684. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  26685. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  26686. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  26687. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  26688. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  26689. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  26690. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  26691. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  26692. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  26693. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  26694. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  26695. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  26696. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  26697. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  26698. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  26699. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  26700. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  26701. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  26702. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  26703. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  26704. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  26705. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  26706. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  26707. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  26708. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  26709. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  26710. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  26711. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  26712. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  26713. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  26714. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  26715. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  26716. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  26717. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  26718. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  26719. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  26720. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  26721. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  26722. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  26723. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  26724. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  26725. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  26726. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  26727. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  26728. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  26729. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  26730. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  26731. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  26732. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  26733. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  26734. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  26735. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  26736. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  26737. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  26738. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  26739. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  26740. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26741. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26742. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26743. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26744. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26745. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  26746. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  26747. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  26748. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  26749. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  26750. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26751. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  26752. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  26753. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  26754. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  26755. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  26756. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  26757. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  26758. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  26759. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  26760. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  26761. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  26762. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  26763. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26764. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26765. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26766. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26767. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  26768. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  26769. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26770. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26771. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26772. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26773. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26774. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26775. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26776. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26777. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26778. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26779. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26780. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26781. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  26782. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  26783. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  26784. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26785. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  26786. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26787. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26788. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26789. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  26790. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  26791. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  26792. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  26793. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  26794. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  26795. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  26796. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  26797. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  26798. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  26799. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  26800. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  26801. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  26802. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  26803. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  26804. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  26805. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  26806. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  26807. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26808. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26809. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  26810. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  26811. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  26812. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  26813. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26814. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26815. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26816. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26817. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  26818. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26819. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  26820. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  26821. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  26822. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  26823. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  26824. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  26825. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  26826. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  26827. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  26828. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  26829. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  26830. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  26831. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  26832. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  26833. LTCC='$LTCC'
  26834. LTCFLAGS='$LTCFLAGS'
  26835. compiler='$compiler_DEFAULT'
  26836. # A function that is used when there is no print builtin or printf.
  26837. func_fallback_echo ()
  26838. {
  26839. eval 'cat <<_LTECHO_EOF
  26840. \$1
  26841. _LTECHO_EOF'
  26842. }
  26843. # Quote evaled strings.
  26844. for var in AS \
  26845. DLLTOOL \
  26846. OBJDUMP \
  26847. SHELL \
  26848. ECHO \
  26849. PATH_SEPARATOR \
  26850. SED \
  26851. GREP \
  26852. EGREP \
  26853. FGREP \
  26854. LD \
  26855. NM \
  26856. LN_S \
  26857. lt_SP2NL \
  26858. lt_NL2SP \
  26859. reload_flag \
  26860. deplibs_check_method \
  26861. file_magic_cmd \
  26862. file_magic_glob \
  26863. want_nocaseglob \
  26864. sharedlib_from_linklib_cmd \
  26865. AR \
  26866. AR_FLAGS \
  26867. archiver_list_spec \
  26868. STRIP \
  26869. RANLIB \
  26870. CC \
  26871. CFLAGS \
  26872. compiler \
  26873. lt_cv_sys_global_symbol_pipe \
  26874. lt_cv_sys_global_symbol_to_cdecl \
  26875. lt_cv_sys_global_symbol_to_import \
  26876. lt_cv_sys_global_symbol_to_c_name_address \
  26877. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  26878. lt_cv_nm_interface \
  26879. nm_file_list_spec \
  26880. lt_cv_truncate_bin \
  26881. lt_prog_compiler_no_builtin_flag \
  26882. lt_prog_compiler_pic \
  26883. lt_prog_compiler_wl \
  26884. lt_prog_compiler_static \
  26885. lt_cv_prog_compiler_c_o \
  26886. need_locks \
  26887. MANIFEST_TOOL \
  26888. DSYMUTIL \
  26889. NMEDIT \
  26890. LIPO \
  26891. OTOOL \
  26892. OTOOL64 \
  26893. shrext_cmds \
  26894. export_dynamic_flag_spec \
  26895. whole_archive_flag_spec \
  26896. compiler_needs_object \
  26897. with_gnu_ld \
  26898. allow_undefined_flag \
  26899. no_undefined_flag \
  26900. hardcode_libdir_flag_spec \
  26901. hardcode_libdir_separator \
  26902. exclude_expsyms \
  26903. include_expsyms \
  26904. file_list_spec \
  26905. variables_saved_for_relink \
  26906. libname_spec \
  26907. library_names_spec \
  26908. soname_spec \
  26909. install_override_mode \
  26910. finish_eval \
  26911. old_striplib \
  26912. striplib \
  26913. compiler_lib_search_dirs \
  26914. predep_objects \
  26915. postdep_objects \
  26916. predeps \
  26917. postdeps \
  26918. compiler_lib_search_path \
  26919. LD_RC \
  26920. LD_CXX \
  26921. reload_flag_RC \
  26922. reload_flag_CXX \
  26923. compiler_RC \
  26924. compiler_CXX \
  26925. lt_prog_compiler_no_builtin_flag_RC \
  26926. lt_prog_compiler_no_builtin_flag_CXX \
  26927. lt_prog_compiler_pic_RC \
  26928. lt_prog_compiler_pic_CXX \
  26929. lt_prog_compiler_wl_RC \
  26930. lt_prog_compiler_wl_CXX \
  26931. lt_prog_compiler_static_RC \
  26932. lt_prog_compiler_static_CXX \
  26933. lt_cv_prog_compiler_c_o_RC \
  26934. lt_cv_prog_compiler_c_o_CXX \
  26935. export_dynamic_flag_spec_RC \
  26936. export_dynamic_flag_spec_CXX \
  26937. whole_archive_flag_spec_RC \
  26938. whole_archive_flag_spec_CXX \
  26939. compiler_needs_object_RC \
  26940. compiler_needs_object_CXX \
  26941. with_gnu_ld_RC \
  26942. with_gnu_ld_CXX \
  26943. allow_undefined_flag_RC \
  26944. allow_undefined_flag_CXX \
  26945. no_undefined_flag_RC \
  26946. no_undefined_flag_CXX \
  26947. hardcode_libdir_flag_spec_RC \
  26948. hardcode_libdir_flag_spec_CXX \
  26949. hardcode_libdir_separator_RC \
  26950. hardcode_libdir_separator_CXX \
  26951. exclude_expsyms_RC \
  26952. exclude_expsyms_CXX \
  26953. include_expsyms_RC \
  26954. include_expsyms_CXX \
  26955. file_list_spec_RC \
  26956. file_list_spec_CXX \
  26957. compiler_lib_search_dirs_RC \
  26958. compiler_lib_search_dirs_CXX \
  26959. predep_objects_RC \
  26960. predep_objects_CXX \
  26961. postdep_objects_RC \
  26962. postdep_objects_CXX \
  26963. predeps_RC \
  26964. predeps_CXX \
  26965. postdeps_RC \
  26966. postdeps_CXX \
  26967. compiler_lib_search_path_RC \
  26968. compiler_lib_search_path_CXX; do
  26969. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  26970. *[\\\\\\\`\\"\\\$]*)
  26971. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  26972. ;;
  26973. *)
  26974. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  26975. ;;
  26976. esac
  26977. done
  26978. # Double-quote double-evaled strings.
  26979. for var in reload_cmds \
  26980. old_postinstall_cmds \
  26981. old_postuninstall_cmds \
  26982. old_archive_cmds \
  26983. extract_expsyms_cmds \
  26984. old_archive_from_new_cmds \
  26985. old_archive_from_expsyms_cmds \
  26986. archive_cmds \
  26987. archive_expsym_cmds \
  26988. module_cmds \
  26989. module_expsym_cmds \
  26990. export_symbols_cmds \
  26991. prelink_cmds \
  26992. postlink_cmds \
  26993. postinstall_cmds \
  26994. postuninstall_cmds \
  26995. finish_cmds \
  26996. sys_lib_search_path_spec \
  26997. configure_time_dlsearch_path \
  26998. configure_time_lt_sys_library_path \
  26999. reload_cmds_RC \
  27000. reload_cmds_CXX \
  27001. old_archive_cmds_RC \
  27002. old_archive_cmds_CXX \
  27003. old_archive_from_new_cmds_RC \
  27004. old_archive_from_new_cmds_CXX \
  27005. old_archive_from_expsyms_cmds_RC \
  27006. old_archive_from_expsyms_cmds_CXX \
  27007. archive_cmds_RC \
  27008. archive_cmds_CXX \
  27009. archive_expsym_cmds_RC \
  27010. archive_expsym_cmds_CXX \
  27011. module_cmds_RC \
  27012. module_cmds_CXX \
  27013. module_expsym_cmds_RC \
  27014. module_expsym_cmds_CXX \
  27015. export_symbols_cmds_RC \
  27016. export_symbols_cmds_CXX \
  27017. prelink_cmds_RC \
  27018. prelink_cmds_CXX \
  27019. postlink_cmds_RC \
  27020. postlink_cmds_CXX; do
  27021. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  27022. *[\\\\\\\`\\"\\\$]*)
  27023. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  27024. ;;
  27025. *)
  27026. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  27027. ;;
  27028. esac
  27029. done
  27030. ac_aux_dir='$ac_aux_dir'
  27031. # See if we are running on zsh, and set the options that allow our
  27032. # commands through without removal of \ escapes INIT.
  27033. if test -n "\${ZSH_VERSION+set}"; then
  27034. setopt NO_GLOB_SUBST
  27035. fi
  27036. PACKAGE='$PACKAGE'
  27037. VERSION='$VERSION'
  27038. RM='$RM'
  27039. ofile='$ofile'
  27040. SUMMARY="$SUMMARY"
  27041. _ACEOF
  27042. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27043. # Handling of arguments.
  27044. for ac_config_target in $ac_config_targets
  27045. do
  27046. case $ac_config_target in
  27047. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  27048. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  27049. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  27050. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  27051. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  27052. "sdl2-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config-version.cmake" ;;
  27053. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  27054. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  27055. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  27056. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  27057. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  27058. esac
  27059. done
  27060. # If the user did not use the arguments to specify the items to instantiate,
  27061. # then the envvar interface is used. Set only those that are not.
  27062. # We use the long form for the default assignment because of an extremely
  27063. # bizarre bug on SunOS 4.1.3.
  27064. if $ac_need_defaults; then
  27065. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  27066. test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  27067. test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
  27068. fi
  27069. # Have a temporary directory for convenience. Make it in the build tree
  27070. # simply because there is no reason against having it here, and in addition,
  27071. # creating and moving files from /tmp can sometimes cause problems.
  27072. # Hook for its removal unless debugging.
  27073. # Note that there is a small window in which the directory will not be cleaned:
  27074. # after its creation but before its name has been assigned to `$tmp'.
  27075. $debug ||
  27076. {
  27077. tmp= ac_tmp=
  27078. trap 'exit_status=$?
  27079. : "${ac_tmp:=$tmp}"
  27080. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  27081. ' 0
  27082. trap 'as_fn_exit 1' 1 2 13 15
  27083. }
  27084. # Create a (secure) tmp directory for tmp files.
  27085. {
  27086. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  27087. test -d "$tmp"
  27088. } ||
  27089. {
  27090. tmp=./conf$$-$RANDOM
  27091. (umask 077 && mkdir "$tmp")
  27092. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  27093. ac_tmp=$tmp
  27094. # Set up the scripts for CONFIG_FILES section.
  27095. # No need to generate them if there are no CONFIG_FILES.
  27096. # This happens for instance with `./config.status config.h'.
  27097. if test -n "$CONFIG_FILES"; then
  27098. ac_cr=`echo X | tr X '\015'`
  27099. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  27100. # But we know of no other shell where ac_cr would be empty at this
  27101. # point, so we can use a bashism as a fallback.
  27102. if test "x$ac_cr" = x; then
  27103. eval ac_cr=\$\'\\r\'
  27104. fi
  27105. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  27106. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  27107. ac_cs_awk_cr='\\r'
  27108. else
  27109. ac_cs_awk_cr=$ac_cr
  27110. fi
  27111. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  27112. _ACEOF
  27113. {
  27114. echo "cat >conf$$subs.awk <<_ACEOF" &&
  27115. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  27116. echo "_ACEOF"
  27117. } >conf$$subs.sh ||
  27118. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  27119. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  27120. ac_delim='%!_!# '
  27121. for ac_last_try in false false false false false :; do
  27122. . ./conf$$subs.sh ||
  27123. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  27124. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  27125. if test $ac_delim_n = $ac_delim_num; then
  27126. break
  27127. elif $ac_last_try; then
  27128. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  27129. else
  27130. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  27131. fi
  27132. done
  27133. rm -f conf$$subs.sh
  27134. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27135. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  27136. _ACEOF
  27137. sed -n '
  27138. h
  27139. s/^/S["/; s/!.*/"]=/
  27140. p
  27141. g
  27142. s/^[^!]*!//
  27143. :repl
  27144. t repl
  27145. s/'"$ac_delim"'$//
  27146. t delim
  27147. :nl
  27148. h
  27149. s/\(.\{148\}\)..*/\1/
  27150. t more1
  27151. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  27152. p
  27153. n
  27154. b repl
  27155. :more1
  27156. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  27157. p
  27158. g
  27159. s/.\{148\}//
  27160. t nl
  27161. :delim
  27162. h
  27163. s/\(.\{148\}\)..*/\1/
  27164. t more2
  27165. s/["\\]/\\&/g; s/^/"/; s/$/"/
  27166. p
  27167. b
  27168. :more2
  27169. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  27170. p
  27171. g
  27172. s/.\{148\}//
  27173. t delim
  27174. ' <conf$$subs.awk | sed '
  27175. /^[^""]/{
  27176. N
  27177. s/\n//
  27178. }
  27179. ' >>$CONFIG_STATUS || ac_write_fail=1
  27180. rm -f conf$$subs.awk
  27181. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27182. _ACAWK
  27183. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  27184. for (key in S) S_is_set[key] = 1
  27185. FS = ""
  27186. }
  27187. {
  27188. line = $ 0
  27189. nfields = split(line, field, "@")
  27190. substed = 0
  27191. len = length(field[1])
  27192. for (i = 2; i < nfields; i++) {
  27193. key = field[i]
  27194. keylen = length(key)
  27195. if (S_is_set[key]) {
  27196. value = S[key]
  27197. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  27198. len += length(value) + length(field[++i])
  27199. substed = 1
  27200. } else
  27201. len += 1 + keylen
  27202. }
  27203. print line
  27204. }
  27205. _ACAWK
  27206. _ACEOF
  27207. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27208. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  27209. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  27210. else
  27211. cat
  27212. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  27213. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  27214. _ACEOF
  27215. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  27216. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  27217. # trailing colons and then remove the whole line if VPATH becomes empty
  27218. # (actually we leave an empty line to preserve line numbers).
  27219. if test "x$srcdir" = x.; then
  27220. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  27221. h
  27222. s///
  27223. s/^/:/
  27224. s/[ ]*$/:/
  27225. s/:\$(srcdir):/:/g
  27226. s/:\${srcdir}:/:/g
  27227. s/:@srcdir@:/:/g
  27228. s/^:*//
  27229. s/:*$//
  27230. x
  27231. s/\(=[ ]*\).*/\1/
  27232. G
  27233. s/\n//
  27234. s/^[^=]*=[ ]*$//
  27235. }'
  27236. fi
  27237. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27238. fi # test -n "$CONFIG_FILES"
  27239. # Set up the scripts for CONFIG_HEADERS section.
  27240. # No need to generate them if there are no CONFIG_HEADERS.
  27241. # This happens for instance with `./config.status Makefile'.
  27242. if test -n "$CONFIG_HEADERS"; then
  27243. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  27244. BEGIN {
  27245. _ACEOF
  27246. # Transform confdefs.h into an awk script `defines.awk', embedded as
  27247. # here-document in config.status, that substitutes the proper values into
  27248. # config.h.in to produce config.h.
  27249. # Create a delimiter string that does not exist in confdefs.h, to ease
  27250. # handling of long lines.
  27251. ac_delim='%!_!# '
  27252. for ac_last_try in false false :; do
  27253. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  27254. if test -z "$ac_tt"; then
  27255. break
  27256. elif $ac_last_try; then
  27257. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  27258. else
  27259. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  27260. fi
  27261. done
  27262. # For the awk script, D is an array of macro values keyed by name,
  27263. # likewise P contains macro parameters if any. Preserve backslash
  27264. # newline sequences.
  27265. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  27266. sed -n '
  27267. s/.\{148\}/&'"$ac_delim"'/g
  27268. t rset
  27269. :rset
  27270. s/^[ ]*#[ ]*define[ ][ ]*/ /
  27271. t def
  27272. d
  27273. :def
  27274. s/\\$//
  27275. t bsnl
  27276. s/["\\]/\\&/g
  27277. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  27278. D["\1"]=" \3"/p
  27279. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  27280. d
  27281. :bsnl
  27282. s/["\\]/\\&/g
  27283. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  27284. D["\1"]=" \3\\\\\\n"\\/p
  27285. t cont
  27286. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  27287. t cont
  27288. d
  27289. :cont
  27290. n
  27291. s/.\{148\}/&'"$ac_delim"'/g
  27292. t clear
  27293. :clear
  27294. s/\\$//
  27295. t bsnlc
  27296. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  27297. d
  27298. :bsnlc
  27299. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  27300. b cont
  27301. ' <confdefs.h | sed '
  27302. s/'"$ac_delim"'/"\\\
  27303. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  27304. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27305. for (key in D) D_is_set[key] = 1
  27306. FS = ""
  27307. }
  27308. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  27309. line = \$ 0
  27310. split(line, arg, " ")
  27311. if (arg[1] == "#") {
  27312. defundef = arg[2]
  27313. mac1 = arg[3]
  27314. } else {
  27315. defundef = substr(arg[1], 2)
  27316. mac1 = arg[2]
  27317. }
  27318. split(mac1, mac2, "(") #)
  27319. macro = mac2[1]
  27320. prefix = substr(line, 1, index(line, defundef) - 1)
  27321. if (D_is_set[macro]) {
  27322. # Preserve the white space surrounding the "#".
  27323. print prefix "define", macro P[macro] D[macro]
  27324. next
  27325. } else {
  27326. # Replace #undef with comments. This is necessary, for example,
  27327. # in the case of _POSIX_SOURCE, which is predefined and required
  27328. # on some systems where configure will not decide to define it.
  27329. if (defundef == "undef") {
  27330. print "/*", prefix defundef, macro, "*/"
  27331. next
  27332. }
  27333. }
  27334. }
  27335. { print }
  27336. _ACAWK
  27337. _ACEOF
  27338. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27339. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  27340. fi # test -n "$CONFIG_HEADERS"
  27341. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  27342. shift
  27343. for ac_tag
  27344. do
  27345. case $ac_tag in
  27346. :[FHLC]) ac_mode=$ac_tag; continue;;
  27347. esac
  27348. case $ac_mode$ac_tag in
  27349. :[FHL]*:*);;
  27350. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  27351. :[FH]-) ac_tag=-:-;;
  27352. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  27353. esac
  27354. ac_save_IFS=$IFS
  27355. IFS=:
  27356. set x $ac_tag
  27357. IFS=$ac_save_IFS
  27358. shift
  27359. ac_file=$1
  27360. shift
  27361. case $ac_mode in
  27362. :L) ac_source=$1;;
  27363. :[FH])
  27364. ac_file_inputs=
  27365. for ac_f
  27366. do
  27367. case $ac_f in
  27368. -) ac_f="$ac_tmp/stdin";;
  27369. *) # Look for the file first in the build tree, then in the source tree
  27370. # (if the path is not absolute). The absolute path cannot be DOS-style,
  27371. # because $ac_f cannot contain `:'.
  27372. test -f "$ac_f" ||
  27373. case $ac_f in
  27374. [\\/$]*) false;;
  27375. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  27376. esac ||
  27377. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  27378. esac
  27379. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  27380. as_fn_append ac_file_inputs " '$ac_f'"
  27381. done
  27382. # Let's still pretend it is `configure' which instantiates (i.e., don't
  27383. # use $as_me), people would be surprised to read:
  27384. # /* config.h. Generated by config.status. */
  27385. configure_input='Generated from '`
  27386. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  27387. `' by configure.'
  27388. if test x"$ac_file" != x-; then
  27389. configure_input="$ac_file. $configure_input"
  27390. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  27391. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  27392. fi
  27393. # Neutralize special characters interpreted by sed in replacement strings.
  27394. case $configure_input in #(
  27395. *\&* | *\|* | *\\* )
  27396. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  27397. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  27398. *) ac_sed_conf_input=$configure_input;;
  27399. esac
  27400. case $ac_tag in
  27401. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  27402. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  27403. esac
  27404. ;;
  27405. esac
  27406. ac_dir=`$as_dirname -- "$ac_file" ||
  27407. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  27408. X"$ac_file" : 'X\(//\)[^/]' \| \
  27409. X"$ac_file" : 'X\(//\)$' \| \
  27410. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  27411. printf "%s\n" X"$ac_file" |
  27412. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  27413. s//\1/
  27414. q
  27415. }
  27416. /^X\(\/\/\)[^/].*/{
  27417. s//\1/
  27418. q
  27419. }
  27420. /^X\(\/\/\)$/{
  27421. s//\1/
  27422. q
  27423. }
  27424. /^X\(\/\).*/{
  27425. s//\1/
  27426. q
  27427. }
  27428. s/.*/./; q'`
  27429. as_dir="$ac_dir"; as_fn_mkdir_p
  27430. ac_builddir=.
  27431. case "$ac_dir" in
  27432. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  27433. *)
  27434. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  27435. # A ".." for each directory in $ac_dir_suffix.
  27436. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  27437. case $ac_top_builddir_sub in
  27438. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  27439. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  27440. esac ;;
  27441. esac
  27442. ac_abs_top_builddir=$ac_pwd
  27443. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  27444. # for backward compatibility:
  27445. ac_top_builddir=$ac_top_build_prefix
  27446. case $srcdir in
  27447. .) # We are building in place.
  27448. ac_srcdir=.
  27449. ac_top_srcdir=$ac_top_builddir_sub
  27450. ac_abs_top_srcdir=$ac_pwd ;;
  27451. [\\/]* | ?:[\\/]* ) # Absolute name.
  27452. ac_srcdir=$srcdir$ac_dir_suffix;
  27453. ac_top_srcdir=$srcdir
  27454. ac_abs_top_srcdir=$srcdir ;;
  27455. *) # Relative name.
  27456. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  27457. ac_top_srcdir=$ac_top_build_prefix$srcdir
  27458. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  27459. esac
  27460. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  27461. case $ac_mode in
  27462. :F)
  27463. #
  27464. # CONFIG_FILE
  27465. #
  27466. case $INSTALL in
  27467. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  27468. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  27469. esac
  27470. _ACEOF
  27471. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27472. # If the template does not know about datarootdir, expand it.
  27473. # FIXME: This hack should be removed a few years after 2.60.
  27474. ac_datarootdir_hack=; ac_datarootdir_seen=
  27475. ac_sed_dataroot='
  27476. /datarootdir/ {
  27477. p
  27478. q
  27479. }
  27480. /@datadir@/p
  27481. /@docdir@/p
  27482. /@infodir@/p
  27483. /@localedir@/p
  27484. /@mandir@/p'
  27485. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  27486. *datarootdir*) ac_datarootdir_seen=yes;;
  27487. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  27488. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  27489. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  27490. _ACEOF
  27491. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27492. ac_datarootdir_hack='
  27493. s&@datadir@&$datadir&g
  27494. s&@docdir@&$docdir&g
  27495. s&@infodir@&$infodir&g
  27496. s&@localedir@&$localedir&g
  27497. s&@mandir@&$mandir&g
  27498. s&\\\${datarootdir}&$datarootdir&g' ;;
  27499. esac
  27500. _ACEOF
  27501. # Neutralize VPATH when `$srcdir' = `.'.
  27502. # Shell code in configure.ac might set extrasub.
  27503. # FIXME: do we really want to maintain this feature?
  27504. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27505. ac_sed_extra="$ac_vpsub
  27506. $extrasub
  27507. _ACEOF
  27508. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27509. :t
  27510. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  27511. s|@configure_input@|$ac_sed_conf_input|;t t
  27512. s&@top_builddir@&$ac_top_builddir_sub&;t t
  27513. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  27514. s&@srcdir@&$ac_srcdir&;t t
  27515. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  27516. s&@top_srcdir@&$ac_top_srcdir&;t t
  27517. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  27518. s&@builddir@&$ac_builddir&;t t
  27519. s&@abs_builddir@&$ac_abs_builddir&;t t
  27520. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  27521. s&@INSTALL@&$ac_INSTALL&;t t
  27522. $ac_datarootdir_hack
  27523. "
  27524. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  27525. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27526. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  27527. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  27528. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  27529. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  27530. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  27531. which seems to be undefined. Please make sure it is defined" >&5
  27532. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  27533. which seems to be undefined. Please make sure it is defined" >&2;}
  27534. rm -f "$ac_tmp/stdin"
  27535. case $ac_file in
  27536. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  27537. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  27538. esac \
  27539. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27540. ;;
  27541. :H)
  27542. #
  27543. # CONFIG_HEADER
  27544. #
  27545. if test x"$ac_file" != x-; then
  27546. {
  27547. printf "%s\n" "/* $configure_input */" >&1 \
  27548. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  27549. } >"$ac_tmp/config.h" \
  27550. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27551. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  27552. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  27553. printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
  27554. else
  27555. rm -f "$ac_file"
  27556. mv "$ac_tmp/config.h" "$ac_file" \
  27557. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27558. fi
  27559. else
  27560. printf "%s\n" "/* $configure_input */" >&1 \
  27561. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  27562. || as_fn_error $? "could not create -" "$LINENO" 5
  27563. fi
  27564. ;;
  27565. :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  27566. printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
  27567. ;;
  27568. esac
  27569. case $ac_file$ac_mode in
  27570. "libtool":C)
  27571. # See if we are running on zsh, and set the options that allow our
  27572. # commands through without removal of \ escapes.
  27573. if test -n "${ZSH_VERSION+set}"; then
  27574. setopt NO_GLOB_SUBST
  27575. fi
  27576. cfgfile=${ofile}T
  27577. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  27578. $RM "$cfgfile"
  27579. cat <<_LT_EOF >> "$cfgfile"
  27580. #! $SHELL
  27581. # Generated automatically by $as_me ($PACKAGE) $VERSION
  27582. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  27583. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  27584. # Provide generalized library-building support services.
  27585. # Written by Gordon Matzigkeit, 1996
  27586. # Copyright (C) 2014 Free Software Foundation, Inc.
  27587. # This is free software; see the source for copying conditions. There is NO
  27588. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  27589. # GNU Libtool is free software; you can redistribute it and/or modify
  27590. # it under the terms of the GNU General Public License as published by
  27591. # the Free Software Foundation; either version 2 of of the License, or
  27592. # (at your option) any later version.
  27593. #
  27594. # As a special exception to the GNU General Public License, if you
  27595. # distribute this file as part of a program or library that is built
  27596. # using GNU Libtool, you may include this file under the same
  27597. # distribution terms that you use for the rest of that program.
  27598. #
  27599. # GNU Libtool is distributed in the hope that it will be useful, but
  27600. # WITHOUT ANY WARRANTY; without even the implied warranty of
  27601. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  27602. # GNU General Public License for more details.
  27603. #
  27604. # You should have received a copy of the GNU General Public License
  27605. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  27606. # The names of the tagged configurations supported by this script.
  27607. available_tags='RC CXX '
  27608. # Configured defaults for sys_lib_dlsearch_path munging.
  27609. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  27610. # ### BEGIN LIBTOOL CONFIG
  27611. # Which release of libtool.m4 was used?
  27612. macro_version=$macro_version
  27613. macro_revision=$macro_revision
  27614. # Assembler program.
  27615. AS=$lt_AS
  27616. # DLL creation program.
  27617. DLLTOOL=$lt_DLLTOOL
  27618. # Object dumper program.
  27619. OBJDUMP=$lt_OBJDUMP
  27620. # Whether or not to build shared libraries.
  27621. build_libtool_libs=$enable_shared
  27622. # Whether or not to build static libraries.
  27623. build_old_libs=$enable_static
  27624. # What type of objects to build.
  27625. pic_mode=$pic_mode
  27626. # Whether or not to optimize for fast installation.
  27627. fast_install=$enable_fast_install
  27628. # Shared archive member basename,for filename based shared library versioning on AIX.
  27629. shared_archive_member_spec=$shared_archive_member_spec
  27630. # Shell to use when invoking shell scripts.
  27631. SHELL=$lt_SHELL
  27632. # An echo program that protects backslashes.
  27633. ECHO=$lt_ECHO
  27634. # The PATH separator for the build system.
  27635. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  27636. # The host system.
  27637. host_alias=$host_alias
  27638. host=$host
  27639. host_os=$host_os
  27640. # The build system.
  27641. build_alias=$build_alias
  27642. build=$build
  27643. build_os=$build_os
  27644. # A sed program that does not truncate output.
  27645. SED=$lt_SED
  27646. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  27647. Xsed="\$SED -e 1s/^X//"
  27648. # A grep program that handles long lines.
  27649. GREP=$lt_GREP
  27650. # An ERE matcher.
  27651. EGREP=$lt_EGREP
  27652. # A literal string matcher.
  27653. FGREP=$lt_FGREP
  27654. # A BSD- or MS-compatible name lister.
  27655. NM=$lt_NM
  27656. # Whether we need soft or hard links.
  27657. LN_S=$lt_LN_S
  27658. # What is the maximum length of a command?
  27659. max_cmd_len=$max_cmd_len
  27660. # Object file suffix (normally "o").
  27661. objext=$ac_objext
  27662. # Executable file suffix (normally "").
  27663. exeext=$exeext
  27664. # whether the shell understands "unset".
  27665. lt_unset=$lt_unset
  27666. # turn spaces into newlines.
  27667. SP2NL=$lt_lt_SP2NL
  27668. # turn newlines into spaces.
  27669. NL2SP=$lt_lt_NL2SP
  27670. # convert \$build file names to \$host format.
  27671. to_host_file_cmd=$lt_cv_to_host_file_cmd
  27672. # convert \$build files to toolchain format.
  27673. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  27674. # Method to check whether dependent libraries are shared objects.
  27675. deplibs_check_method=$lt_deplibs_check_method
  27676. # Command to use when deplibs_check_method = "file_magic".
  27677. file_magic_cmd=$lt_file_magic_cmd
  27678. # How to find potential files when deplibs_check_method = "file_magic".
  27679. file_magic_glob=$lt_file_magic_glob
  27680. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  27681. want_nocaseglob=$lt_want_nocaseglob
  27682. # Command to associate shared and link libraries.
  27683. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  27684. # The archiver.
  27685. AR=$lt_AR
  27686. # Flags to create an archive.
  27687. AR_FLAGS=$lt_AR_FLAGS
  27688. # How to feed a file listing to the archiver.
  27689. archiver_list_spec=$lt_archiver_list_spec
  27690. # A symbol stripping program.
  27691. STRIP=$lt_STRIP
  27692. # Commands used to install an old-style archive.
  27693. RANLIB=$lt_RANLIB
  27694. old_postinstall_cmds=$lt_old_postinstall_cmds
  27695. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  27696. # Whether to use a lock for old archive extraction.
  27697. lock_old_archive_extraction=$lock_old_archive_extraction
  27698. # A C compiler.
  27699. LTCC=$lt_CC
  27700. # LTCC compiler flags.
  27701. LTCFLAGS=$lt_CFLAGS
  27702. # Take the output of nm and produce a listing of raw symbols and C names.
  27703. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  27704. # Transform the output of nm in a proper C declaration.
  27705. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  27706. # Transform the output of nm into a list of symbols to manually relocate.
  27707. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  27708. # Transform the output of nm in a C name address pair.
  27709. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  27710. # Transform the output of nm in a C name address pair when lib prefix is needed.
  27711. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  27712. # The name lister interface.
  27713. nm_interface=$lt_lt_cv_nm_interface
  27714. # Specify filename containing input files for \$NM.
  27715. nm_file_list_spec=$lt_nm_file_list_spec
  27716. # The root where to search for dependent libraries,and where our libraries should be installed.
  27717. lt_sysroot=$lt_sysroot
  27718. # Command to truncate a binary pipe.
  27719. lt_truncate_bin=$lt_lt_cv_truncate_bin
  27720. # The name of the directory that contains temporary libtool files.
  27721. objdir=$objdir
  27722. # Used to examine libraries when file_magic_cmd begins with "file".
  27723. MAGIC_CMD=$MAGIC_CMD
  27724. # Must we lock files when doing compilation?
  27725. need_locks=$lt_need_locks
  27726. # Manifest tool.
  27727. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  27728. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  27729. DSYMUTIL=$lt_DSYMUTIL
  27730. # Tool to change global to local symbols on Mac OS X.
  27731. NMEDIT=$lt_NMEDIT
  27732. # Tool to manipulate fat objects and archives on Mac OS X.
  27733. LIPO=$lt_LIPO
  27734. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  27735. OTOOL=$lt_OTOOL
  27736. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  27737. OTOOL64=$lt_OTOOL64
  27738. # Old archive suffix (normally "a").
  27739. libext=$libext
  27740. # Shared library suffix (normally ".so").
  27741. shrext_cmds=$lt_shrext_cmds
  27742. # The commands to extract the exported symbol list from a shared archive.
  27743. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  27744. # Variables whose values should be saved in libtool wrapper scripts and
  27745. # restored at link time.
  27746. variables_saved_for_relink=$lt_variables_saved_for_relink
  27747. # Do we need the "lib" prefix for modules?
  27748. need_lib_prefix=$need_lib_prefix
  27749. # Do we need a version for libraries?
  27750. need_version=$need_version
  27751. # Library versioning type.
  27752. version_type=$version_type
  27753. # Shared library runtime path variable.
  27754. runpath_var=$runpath_var
  27755. # Shared library path variable.
  27756. shlibpath_var=$shlibpath_var
  27757. # Is shlibpath searched before the hard-coded library search path?
  27758. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  27759. # Format of library name prefix.
  27760. libname_spec=$lt_libname_spec
  27761. # List of archive names. First name is the real one, the rest are links.
  27762. # The last name is the one that the linker finds with -lNAME
  27763. library_names_spec=$lt_library_names_spec
  27764. # The coded name of the library, if different from the real name.
  27765. soname_spec=$lt_soname_spec
  27766. # Permission mode override for installation of shared libraries.
  27767. install_override_mode=$lt_install_override_mode
  27768. # Command to use after installation of a shared archive.
  27769. postinstall_cmds=$lt_postinstall_cmds
  27770. # Command to use after uninstallation of a shared archive.
  27771. postuninstall_cmds=$lt_postuninstall_cmds
  27772. # Commands used to finish a libtool library installation in a directory.
  27773. finish_cmds=$lt_finish_cmds
  27774. # As "finish_cmds", except a single script fragment to be evaled but
  27775. # not shown.
  27776. finish_eval=$lt_finish_eval
  27777. # Whether we should hardcode library paths into libraries.
  27778. hardcode_into_libs=$hardcode_into_libs
  27779. # Compile-time system search path for libraries.
  27780. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  27781. # Detected run-time system search path for libraries.
  27782. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  27783. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  27784. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  27785. # Whether dlopen is supported.
  27786. dlopen_support=$enable_dlopen
  27787. # Whether dlopen of programs is supported.
  27788. dlopen_self=$enable_dlopen_self
  27789. # Whether dlopen of statically linked programs is supported.
  27790. dlopen_self_static=$enable_dlopen_self_static
  27791. # Commands to strip libraries.
  27792. old_striplib=$lt_old_striplib
  27793. striplib=$lt_striplib
  27794. # The linker used to build libraries.
  27795. LD=$lt_LD
  27796. # How to create reloadable object files.
  27797. reload_flag=$lt_reload_flag
  27798. reload_cmds=$lt_reload_cmds
  27799. # Commands used to build an old-style archive.
  27800. old_archive_cmds=$lt_old_archive_cmds
  27801. # A language specific compiler.
  27802. CC=$lt_compiler
  27803. # Is the compiler the GNU compiler?
  27804. with_gcc=$GCC
  27805. # Compiler flag to turn off builtin functions.
  27806. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  27807. # Additional compiler flags for building library objects.
  27808. pic_flag=$lt_lt_prog_compiler_pic
  27809. # How to pass a linker flag through the compiler.
  27810. wl=$lt_lt_prog_compiler_wl
  27811. # Compiler flag to prevent dynamic linking.
  27812. link_static_flag=$lt_lt_prog_compiler_static
  27813. # Does compiler simultaneously support -c and -o options?
  27814. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  27815. # Whether or not to add -lc for building shared libraries.
  27816. build_libtool_need_lc=$archive_cmds_need_lc
  27817. # Whether or not to disallow shared libs when runtime libs are static.
  27818. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  27819. # Compiler flag to allow reflexive dlopens.
  27820. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  27821. # Compiler flag to generate shared objects directly from archives.
  27822. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  27823. # Whether the compiler copes with passing no objects directly.
  27824. compiler_needs_object=$lt_compiler_needs_object
  27825. # Create an old-style archive from a shared archive.
  27826. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  27827. # Create a temporary old-style archive to link instead of a shared archive.
  27828. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  27829. # Commands used to build a shared archive.
  27830. archive_cmds=$lt_archive_cmds
  27831. archive_expsym_cmds=$lt_archive_expsym_cmds
  27832. # Commands used to build a loadable module if different from building
  27833. # a shared archive.
  27834. module_cmds=$lt_module_cmds
  27835. module_expsym_cmds=$lt_module_expsym_cmds
  27836. # Whether we are building with GNU ld or not.
  27837. with_gnu_ld=$lt_with_gnu_ld
  27838. # Flag that allows shared libraries with undefined symbols to be built.
  27839. allow_undefined_flag=$lt_allow_undefined_flag
  27840. # Flag that enforces no undefined symbols.
  27841. no_undefined_flag=$lt_no_undefined_flag
  27842. # Flag to hardcode \$libdir into a binary during linking.
  27843. # This must work even if \$libdir does not exist
  27844. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  27845. # Whether we need a single "-rpath" flag with a separated argument.
  27846. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  27847. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27848. # DIR into the resulting binary.
  27849. hardcode_direct=$hardcode_direct
  27850. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27851. # DIR into the resulting binary and the resulting library dependency is
  27852. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  27853. # library is relocated.
  27854. hardcode_direct_absolute=$hardcode_direct_absolute
  27855. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  27856. # into the resulting binary.
  27857. hardcode_minus_L=$hardcode_minus_L
  27858. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  27859. # into the resulting binary.
  27860. hardcode_shlibpath_var=$hardcode_shlibpath_var
  27861. # Set to "yes" if building a shared library automatically hardcodes DIR
  27862. # into the library and all subsequent libraries and executables linked
  27863. # against it.
  27864. hardcode_automatic=$hardcode_automatic
  27865. # Set to yes if linker adds runtime paths of dependent libraries
  27866. # to runtime path list.
  27867. inherit_rpath=$inherit_rpath
  27868. # Whether libtool must link a program against all its dependency libraries.
  27869. link_all_deplibs=$link_all_deplibs
  27870. # Set to "yes" if exported symbols are required.
  27871. always_export_symbols=$always_export_symbols
  27872. # The commands to list exported symbols.
  27873. export_symbols_cmds=$lt_export_symbols_cmds
  27874. # Symbols that should not be listed in the preloaded symbols.
  27875. exclude_expsyms=$lt_exclude_expsyms
  27876. # Symbols that must always be exported.
  27877. include_expsyms=$lt_include_expsyms
  27878. # Commands necessary for linking programs (against libraries) with templates.
  27879. prelink_cmds=$lt_prelink_cmds
  27880. # Commands necessary for finishing linking programs.
  27881. postlink_cmds=$lt_postlink_cmds
  27882. # Specify filename containing input files.
  27883. file_list_spec=$lt_file_list_spec
  27884. # How to hardcode a shared library path into an executable.
  27885. hardcode_action=$hardcode_action
  27886. # The directories searched by this compiler when creating a shared library.
  27887. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  27888. # Dependencies to place before and after the objects being linked to
  27889. # create a shared library.
  27890. predep_objects=$lt_predep_objects
  27891. postdep_objects=$lt_postdep_objects
  27892. predeps=$lt_predeps
  27893. postdeps=$lt_postdeps
  27894. # The library search path used internally by the compiler when linking
  27895. # a shared library.
  27896. compiler_lib_search_path=$lt_compiler_lib_search_path
  27897. # ### END LIBTOOL CONFIG
  27898. _LT_EOF
  27899. cat <<'_LT_EOF' >> "$cfgfile"
  27900. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  27901. # func_munge_path_list VARIABLE PATH
  27902. # -----------------------------------
  27903. # VARIABLE is name of variable containing _space_ separated list of
  27904. # directories to be munged by the contents of PATH, which is string
  27905. # having a format:
  27906. # "DIR[:DIR]:"
  27907. # string "DIR[ DIR]" will be prepended to VARIABLE
  27908. # ":DIR[:DIR]"
  27909. # string "DIR[ DIR]" will be appended to VARIABLE
  27910. # "DIRP[:DIRP]::[DIRA:]DIRA"
  27911. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  27912. # "DIRA[ DIRA]" will be appended to VARIABLE
  27913. # "DIR[:DIR]"
  27914. # VARIABLE will be replaced by "DIR[ DIR]"
  27915. func_munge_path_list ()
  27916. {
  27917. case x$2 in
  27918. x)
  27919. ;;
  27920. *:)
  27921. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  27922. ;;
  27923. x:*)
  27924. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  27925. ;;
  27926. *::*)
  27927. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  27928. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  27929. ;;
  27930. *)
  27931. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  27932. ;;
  27933. esac
  27934. }
  27935. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  27936. func_cc_basename ()
  27937. {
  27938. for cc_temp in $*""; do
  27939. case $cc_temp in
  27940. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  27941. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  27942. \-*) ;;
  27943. *) break;;
  27944. esac
  27945. done
  27946. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  27947. }
  27948. # ### END FUNCTIONS SHARED WITH CONFIGURE
  27949. _LT_EOF
  27950. case $host_os in
  27951. aix3*)
  27952. cat <<\_LT_EOF >> "$cfgfile"
  27953. # AIX sometimes has problems with the GCC collect2 program. For some
  27954. # reason, if we set the COLLECT_NAMES environment variable, the problems
  27955. # vanish in a puff of smoke.
  27956. if test set != "${COLLECT_NAMES+set}"; then
  27957. COLLECT_NAMES=
  27958. export COLLECT_NAMES
  27959. fi
  27960. _LT_EOF
  27961. ;;
  27962. esac
  27963. ltmain=$ac_aux_dir/ltmain.sh
  27964. # We use sed instead of cat because bash on DJGPP gets confused if
  27965. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  27966. # text mode, it properly converts lines to CR/LF. This bash problem
  27967. # is reportedly fixed, but why not run on old versions too?
  27968. sed '$q' "$ltmain" >> "$cfgfile" \
  27969. || (rm -f "$cfgfile"; exit 1)
  27970. mv -f "$cfgfile" "$ofile" ||
  27971. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  27972. chmod +x "$ofile"
  27973. cat <<_LT_EOF >> "$ofile"
  27974. # ### BEGIN LIBTOOL TAG CONFIG: RC
  27975. # The linker used to build libraries.
  27976. LD=$lt_LD_RC
  27977. # How to create reloadable object files.
  27978. reload_flag=$lt_reload_flag_RC
  27979. reload_cmds=$lt_reload_cmds_RC
  27980. # Commands used to build an old-style archive.
  27981. old_archive_cmds=$lt_old_archive_cmds_RC
  27982. # A language specific compiler.
  27983. CC=$lt_compiler_RC
  27984. # Is the compiler the GNU compiler?
  27985. with_gcc=$GCC_RC
  27986. # Compiler flag to turn off builtin functions.
  27987. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  27988. # Additional compiler flags for building library objects.
  27989. pic_flag=$lt_lt_prog_compiler_pic_RC
  27990. # How to pass a linker flag through the compiler.
  27991. wl=$lt_lt_prog_compiler_wl_RC
  27992. # Compiler flag to prevent dynamic linking.
  27993. link_static_flag=$lt_lt_prog_compiler_static_RC
  27994. # Does compiler simultaneously support -c and -o options?
  27995. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  27996. # Whether or not to add -lc for building shared libraries.
  27997. build_libtool_need_lc=$archive_cmds_need_lc_RC
  27998. # Whether or not to disallow shared libs when runtime libs are static.
  27999. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  28000. # Compiler flag to allow reflexive dlopens.
  28001. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  28002. # Compiler flag to generate shared objects directly from archives.
  28003. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  28004. # Whether the compiler copes with passing no objects directly.
  28005. compiler_needs_object=$lt_compiler_needs_object_RC
  28006. # Create an old-style archive from a shared archive.
  28007. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  28008. # Create a temporary old-style archive to link instead of a shared archive.
  28009. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  28010. # Commands used to build a shared archive.
  28011. archive_cmds=$lt_archive_cmds_RC
  28012. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  28013. # Commands used to build a loadable module if different from building
  28014. # a shared archive.
  28015. module_cmds=$lt_module_cmds_RC
  28016. module_expsym_cmds=$lt_module_expsym_cmds_RC
  28017. # Whether we are building with GNU ld or not.
  28018. with_gnu_ld=$lt_with_gnu_ld_RC
  28019. # Flag that allows shared libraries with undefined symbols to be built.
  28020. allow_undefined_flag=$lt_allow_undefined_flag_RC
  28021. # Flag that enforces no undefined symbols.
  28022. no_undefined_flag=$lt_no_undefined_flag_RC
  28023. # Flag to hardcode \$libdir into a binary during linking.
  28024. # This must work even if \$libdir does not exist
  28025. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  28026. # Whether we need a single "-rpath" flag with a separated argument.
  28027. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  28028. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  28029. # DIR into the resulting binary.
  28030. hardcode_direct=$hardcode_direct_RC
  28031. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  28032. # DIR into the resulting binary and the resulting library dependency is
  28033. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  28034. # library is relocated.
  28035. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  28036. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  28037. # into the resulting binary.
  28038. hardcode_minus_L=$hardcode_minus_L_RC
  28039. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  28040. # into the resulting binary.
  28041. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  28042. # Set to "yes" if building a shared library automatically hardcodes DIR
  28043. # into the library and all subsequent libraries and executables linked
  28044. # against it.
  28045. hardcode_automatic=$hardcode_automatic_RC
  28046. # Set to yes if linker adds runtime paths of dependent libraries
  28047. # to runtime path list.
  28048. inherit_rpath=$inherit_rpath_RC
  28049. # Whether libtool must link a program against all its dependency libraries.
  28050. link_all_deplibs=$link_all_deplibs_RC
  28051. # Set to "yes" if exported symbols are required.
  28052. always_export_symbols=$always_export_symbols_RC
  28053. # The commands to list exported symbols.
  28054. export_symbols_cmds=$lt_export_symbols_cmds_RC
  28055. # Symbols that should not be listed in the preloaded symbols.
  28056. exclude_expsyms=$lt_exclude_expsyms_RC
  28057. # Symbols that must always be exported.
  28058. include_expsyms=$lt_include_expsyms_RC
  28059. # Commands necessary for linking programs (against libraries) with templates.
  28060. prelink_cmds=$lt_prelink_cmds_RC
  28061. # Commands necessary for finishing linking programs.
  28062. postlink_cmds=$lt_postlink_cmds_RC
  28063. # Specify filename containing input files.
  28064. file_list_spec=$lt_file_list_spec_RC
  28065. # How to hardcode a shared library path into an executable.
  28066. hardcode_action=$hardcode_action_RC
  28067. # The directories searched by this compiler when creating a shared library.
  28068. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  28069. # Dependencies to place before and after the objects being linked to
  28070. # create a shared library.
  28071. predep_objects=$lt_predep_objects_RC
  28072. postdep_objects=$lt_postdep_objects_RC
  28073. predeps=$lt_predeps_RC
  28074. postdeps=$lt_postdeps_RC
  28075. # The library search path used internally by the compiler when linking
  28076. # a shared library.
  28077. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  28078. # ### END LIBTOOL TAG CONFIG: RC
  28079. _LT_EOF
  28080. cat <<_LT_EOF >> "$ofile"
  28081. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  28082. # The linker used to build libraries.
  28083. LD=$lt_LD_CXX
  28084. # How to create reloadable object files.
  28085. reload_flag=$lt_reload_flag_CXX
  28086. reload_cmds=$lt_reload_cmds_CXX
  28087. # Commands used to build an old-style archive.
  28088. old_archive_cmds=$lt_old_archive_cmds_CXX
  28089. # A language specific compiler.
  28090. CC=$lt_compiler_CXX
  28091. # Is the compiler the GNU compiler?
  28092. with_gcc=$GCC_CXX
  28093. # Compiler flag to turn off builtin functions.
  28094. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  28095. # Additional compiler flags for building library objects.
  28096. pic_flag=$lt_lt_prog_compiler_pic_CXX
  28097. # How to pass a linker flag through the compiler.
  28098. wl=$lt_lt_prog_compiler_wl_CXX
  28099. # Compiler flag to prevent dynamic linking.
  28100. link_static_flag=$lt_lt_prog_compiler_static_CXX
  28101. # Does compiler simultaneously support -c and -o options?
  28102. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  28103. # Whether or not to add -lc for building shared libraries.
  28104. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  28105. # Whether or not to disallow shared libs when runtime libs are static.
  28106. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  28107. # Compiler flag to allow reflexive dlopens.
  28108. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  28109. # Compiler flag to generate shared objects directly from archives.
  28110. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  28111. # Whether the compiler copes with passing no objects directly.
  28112. compiler_needs_object=$lt_compiler_needs_object_CXX
  28113. # Create an old-style archive from a shared archive.
  28114. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  28115. # Create a temporary old-style archive to link instead of a shared archive.
  28116. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  28117. # Commands used to build a shared archive.
  28118. archive_cmds=$lt_archive_cmds_CXX
  28119. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  28120. # Commands used to build a loadable module if different from building
  28121. # a shared archive.
  28122. module_cmds=$lt_module_cmds_CXX
  28123. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  28124. # Whether we are building with GNU ld or not.
  28125. with_gnu_ld=$lt_with_gnu_ld_CXX
  28126. # Flag that allows shared libraries with undefined symbols to be built.
  28127. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  28128. # Flag that enforces no undefined symbols.
  28129. no_undefined_flag=$lt_no_undefined_flag_CXX
  28130. # Flag to hardcode \$libdir into a binary during linking.
  28131. # This must work even if \$libdir does not exist
  28132. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  28133. # Whether we need a single "-rpath" flag with a separated argument.
  28134. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  28135. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  28136. # DIR into the resulting binary.
  28137. hardcode_direct=$hardcode_direct_CXX
  28138. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  28139. # DIR into the resulting binary and the resulting library dependency is
  28140. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  28141. # library is relocated.
  28142. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  28143. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  28144. # into the resulting binary.
  28145. hardcode_minus_L=$hardcode_minus_L_CXX
  28146. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  28147. # into the resulting binary.
  28148. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  28149. # Set to "yes" if building a shared library automatically hardcodes DIR
  28150. # into the library and all subsequent libraries and executables linked
  28151. # against it.
  28152. hardcode_automatic=$hardcode_automatic_CXX
  28153. # Set to yes if linker adds runtime paths of dependent libraries
  28154. # to runtime path list.
  28155. inherit_rpath=$inherit_rpath_CXX
  28156. # Whether libtool must link a program against all its dependency libraries.
  28157. link_all_deplibs=$link_all_deplibs_CXX
  28158. # Set to "yes" if exported symbols are required.
  28159. always_export_symbols=$always_export_symbols_CXX
  28160. # The commands to list exported symbols.
  28161. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  28162. # Symbols that should not be listed in the preloaded symbols.
  28163. exclude_expsyms=$lt_exclude_expsyms_CXX
  28164. # Symbols that must always be exported.
  28165. include_expsyms=$lt_include_expsyms_CXX
  28166. # Commands necessary for linking programs (against libraries) with templates.
  28167. prelink_cmds=$lt_prelink_cmds_CXX
  28168. # Commands necessary for finishing linking programs.
  28169. postlink_cmds=$lt_postlink_cmds_CXX
  28170. # Specify filename containing input files.
  28171. file_list_spec=$lt_file_list_spec_CXX
  28172. # How to hardcode a shared library path into an executable.
  28173. hardcode_action=$hardcode_action_CXX
  28174. # The directories searched by this compiler when creating a shared library.
  28175. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  28176. # Dependencies to place before and after the objects being linked to
  28177. # create a shared library.
  28178. predep_objects=$lt_predep_objects_CXX
  28179. postdep_objects=$lt_postdep_objects_CXX
  28180. predeps=$lt_predeps_CXX
  28181. postdeps=$lt_postdeps_CXX
  28182. # The library search path used internally by the compiler when linking
  28183. # a shared library.
  28184. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  28185. # ### END LIBTOOL TAG CONFIG: CXX
  28186. _LT_EOF
  28187. ;;
  28188. "sdl2_config":C) chmod a+x sdl2-config ;;
  28189. "summary":C) printf "$SUMMARY" ;;
  28190. esac
  28191. done # for ac_tag
  28192. as_fn_exit 0
  28193. _ACEOF
  28194. ac_clean_files=$ac_clean_files_save
  28195. test $ac_write_fail = 0 ||
  28196. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  28197. # configure is writing to config.log, and then calls config.status.
  28198. # config.status does its own redirection, appending to config.log.
  28199. # Unfortunately, on DOS this fails, as config.log is still kept open
  28200. # by configure, so config.status won't be able to write to it; its
  28201. # output is simply discarded. So we exec the FD to /dev/null,
  28202. # effectively closing config.log, so it can be properly (re)opened and
  28203. # appended to by config.status. When coming back to configure, we
  28204. # need to make the FD available again.
  28205. if test "$no_create" != yes; then
  28206. ac_cs_success=:
  28207. ac_config_status_args=
  28208. test "$silent" = yes &&
  28209. ac_config_status_args="$ac_config_status_args --quiet"
  28210. exec 5>/dev/null
  28211. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  28212. exec 5>>config.log
  28213. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  28214. # would make configure fail if this is the last instruction.
  28215. $ac_cs_success || as_fn_exit 1
  28216. fi
  28217. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  28218. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  28219. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  28220. fi